mymesh.octree.SearchOctree#
- mymesh.octree.SearchOctree(pt, root)[source]#
Retrieve the octree leaf node that contains the given point.
- Parameters:
pt (array_like) – 3D coordinate ([x,y,z])
root (octree.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:
octree.OctreeNode or NoneType