Calculates the intersection point between a line and the surface of a triangle in 3D space.
The function returns the intersection point as a Vertex3d if the line intersects the triangle surface,
or undefined if there is no valid intersection (e.g., the intersection point lies outside the triangle).
Calculates the intersection point between a line and the surface of a triangle in 3D space.
The function returns the intersection point as a
Vertex3d
if the line intersects the triangle surface, orundefined
if there is no valid intersection (e.g., the intersection point lies outside the triangle).