mymesh.utils.DilateVoxel#

mymesh.utils.DilateVoxel(VoxelCoords, VoxelConn)[source]#

For a given voxel mesh, will generate a layer of voxels that wrap around the current voxel mesh. NOTE: This has the potential to create overlapping voxels

Parameters:
  • VoxelCoords (list of lists) – Contains coordinates for each node in a voxel mesh. Ex. [[x1,y1,z1],…]. The voxel mesh is assumed to consist of a set of uniform cubic hexahedral elements.

  • VoxelConn (List of lists) – Nodal connectivity list.

Returns:

  • LayerCoords (list) – New node coordinates.

  • LayerConn (TYPE) – New node connectivity.