mymesh.tree.Octree2Voxel#
- mymesh.tree.Octree2Voxel(root, sparse=True)[source]#
Convert an octree to a voxel mesh
- Parameters:
root (tree.OctreeNode) – Octree node from which the mesh will be generated.
sparse (bool, optional) – Determines voxelization mode. If sparse is True, only leaf nodes that contain data will be included, otherwise both leaf and empty nodes will be include, by default True.
- Returns:
VoxelCoords (np.ndarray) – Node coordinates of the voxel mesh.
VoxelConn (np.ndarray) – Node connectivity of the hexahedral voxel mesh.