mymesh.octree.SearchOctreeTri#
- mymesh.octree.SearchOctreeTri(tri, root, inclusive=True)[source]#
Retrieve the octree leaf node(s) that contain the triangle
- Parameters:
tri (array_like) – 3x3 list or np.ndarray containing the coordinates of the three vertices of a triangle.
root (octree.OctreeNode) – Root node of the octree to be searched
inclusive (bool, optional) – Specifies whether to include leaf nodes that the triangle is exactly on the boundary of, by default True.
- Returns:
nodes – List of octree nodes.
- Return type:
list