mymesh.tree.Points2KDtree#

mymesh.tree.Points2KDtree(Points, maxdepth=10, leafsize=10)[source]#

Generate a KD tree structure from a set of points.

Parameters:
  • Points (array_like) – Point coordinates (shape = (n,k))

  • maxdepth (int, optional) – Maximum depth of the kd tree, by default 10

  • leafsize (int, optional) – Maximum number of points in a leaf node, by default 10.

Returns:

root – Root node of the generated octree structure.

Return type:

tree.KDtreeNode