|
OBSOLETE: Use RtIntersectionLineTriangle from
the rtintsec toolkit.
RtLineTriangleIntersectionTest
intersects a line with a triangle and return the parametric
distance along the line of intersection.
Note that the header file rtray.h must be included, and the
program should be linked to rtray.lib.
- Parameters:
-
line |
Line to intersect with the triangle |
normal |
Surface normal of the triangle |
v0 |
Vertex 1 of the triangle |
v1 |
Vertex 2 of the triangle |
v2 |
Vertex 3 of the triangle |
- Returns:
- Returns one of the following values:
- positive - Parametric position of intersection along the line
with the triangle
- -1 - On failure or if no intersection was found
- See also:
- RtLineSphereIntersectionTest , RtLineClipPlane , RtLineClipBBox
|