mymesh.octree.Points2Octree#
- mymesh.octree.Points2Octree(Points, maxdepth=10)[source]#
Generate an octree structure from a set of points. The octree will be subdivided until each node contains only one point or the maximum depth is met.
- Parameters:
Points (array_like) – Point coordinates (nx3)
maxdepth (int, optional) – Maximum depth of the octree, by default 10
- Returns:
root – Root node of the generated octree structure.
- Return type:
octree.OctreeNode