mymesh.rays.PlaneBoxIntersection#
- mymesh.rays.PlaneBoxIntersection(pt, Normal, xlim, ylim, zlim)[source]#
Intersection algorithm for detecting intersections between a plane and an axis-aligned box.
- Parameters:
pt (array_like) – 3D coordinates for a point on the plane
Normal (array_like) – 3D vector representing the normal vector to the plane
xlim (array_like) – Two element list, array, or tuple with the upper and lower x-direction bounds for an axis-aligned box.
ylim (array_like) – Two element list, array, or tuple with the upper and lower y-direction bounds for an axis-aligned box.
zlim (array_like) – Two element list, array, or tuple with the upper and lower z-direction bounds for an axis-aligned box.
- Returns:
intersection – True if there is an intersection, otherwise False.
- Return type:
bool