mymesh.tree.Voxel2Octree#

mymesh.tree.Voxel2Octree(VoxelCoords, VoxelConn, maxdepth=None)[source]#

Generate an octree representation of an isotropic voxel mesh.

Parameters:
  • VoxelCoords (array_like) – Node coordinates of the voxel mesh

  • VoxelConn (array_like) – Node connectivity of the voxel mesh

Returns:

root – Root node of the generated octree structure

Return type:

tree.OctreeNode