Functions | |
| RwBool | RtIntersectionLineTriangle (const RwV3d *lineStart, const RwV3d *lineDelta, const RwV3d *v0, const RwV3d *v1, const RwV3d *v2, RwReal *distance) |
| RwBool | RtIntersectionSphereTriangle (const RwSphere *sphere, const RwV3d *v0, const RwV3d *v1, const RwV3d *v2, RwV3d *normal, RwReal *distance) |
| RwBool | RtIntersectionBBoxTriangle (const RwBBox *bbox, const RwV3d *v0, const RwV3d *v1, const RwV3d *v2) |
|
||||||||||||||||||||
|
RtIntersectionBBoxTriangle tests for the intersection of a bounding box with a triangle.
|
|
||||||||||||||||||||||||||||
|
RtIntersectionLineTriangle tests for the intersection of a line with a triangle, and if found, returns the parametric distance to the intersection along the line. This function returns TRUE if the line, specified at the starting point lineStart (RwV3d) and a lineDelta (RwV3d) defining the displacement vector, intersects with the triangle (RwV3d). The lineDelta parameter is used to reduce calculation overheads when processing a large number of triangles and can be obtained from RwV3dSub(lineDelta, &line.end, &line.start). This function also takes another parameter, distance, which will hold the parametric distance to the intersection if an intersection was found. This function use backface culling which means:
|
|
||||||||||||||||||||||||||||
|
RtIntersectionSphereTriangle tests for the intersection of a sphere with a triangle, and if found, returns the triangle normal and the perpendicular distance of the sphere center from the plane of the triangle.
|
© 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:47:12 2004.
Send Feedback