mymesh.tree.SearchOctree#

mymesh.tree.SearchOctree(pt, root)[source]#

Retrieve the octree leaf node that contains the given point.

Parameters:
  • pt (array_like) – 3D coordinate ([x,y,z])

  • root (tree.OctreeNode) – Root of the octree to be searched

Returns:

node – Octree node containing the point. If the no node can be found to contain the point, None will be returned.

Return type:

tree.OctreeNode or NoneType