mymesh.tree.Points2Quadtree#
- mymesh.tree.Points2Quadtree(Points, maxdepth=10)[source]#
Generate an quadtree structure from a set of points. The quadtree will be subdivided until each node contains only one point or the maximum depth is met.
- Parameters:
Points (array_like) – Point coordinates (shape=(n,3) or (n,2). If (n,3), the third dimension is ignored).
maxdepth (int, optional) – Maximum depth of the quadtree, by default 10
- Returns:
root – Root node of the generated octree structure.
- Return type:
tree.Quadtree