mymesh.octree#

Octree data structure and related methods.

Octree Creation#

Points2Octree(Points[, maxdepth])

Generate an octree structure from a set of points.

Function2Octree(func, bounds[, threshold, ...])

Generate an octree structure adapted to an implicit function.

Surface2Octree(NodeCoords, SurfConn[, ...])

Generate an octree representation of a triangular surface mesh.

Voxel2Octree(VoxelCoords, VoxelConn)

Generate an octree representation of an isotropic voxel mesh.

Conversion From Octree#

Octree2Voxel(root[, mode])

Convert an octree to a voxel mesh

Octree2Dual(root[, method])

Converts an octree to a mesh that is dual to the octree structure.

Octree Querying#

getAllLeaf(root)

Retrieve a list of all leaf nodes of the octree

SearchOctree(pt, root)

Retrieve the octree leaf node that contains the given point.

SearchOctreeTri(tri, root[, inclusive])

Retrieve the octree leaf node(s) that contain the triangle

Octree Utilities#

Print(root[, show_empty])

Prints a formatted list of all nodes in the octree.

Classes

OctreeNode(centroid, size[, parent, data, ...])