mymesh.rays.PlaneTriangleIntersection#

mymesh.rays.PlaneTriangleIntersection(pt, Normal, TriCoords)[source]#

Intersection test for detecting intersections between a plane and a triangle.

An intersection will be detected if points are on different sides of the plane, or if any points lie exactly on the plane.

Parameters:
  • pt (array_like) – 3 element array, point on plane

  • Normal (array_like) – 3 element array, normal vector to plane

  • TriCoords (array_like) – Coordinates of the three vertices of the triangle in the format np.array([[a, b, c], [d, e, f], [g, h, i]])

Returns:

intersection – True if there is an intersection, otherwise False.

Return type:

bool