mymesh.rays.RayOctreeIntersection#
- mymesh.rays.RayOctreeIntersection(pt, ray, Octree, bidirectional=False)[source]#
Test for identifying intersections between a ray and an octree.
- Parameters:
pt (array_like) – 3D point coordinate (shape = (3,))
ray (array_like) – 3D vector (shape = (3,))
Octree (tree.OctreeNode) – Root node of the octree data structure
bidirectional (bool, optional) – Determines whether to check for intersections only in the direction the ray is pointing, or in both directions (±ray), by default False.
- Returns:
intersection_leaves – List of octree leaf nodes that the ray intersects.
- Return type: