Function intersect_triangle

Source
pub fn intersect_triangle(
    ray: &Ray3,
    corners: [DVec3; 3],
    tolerance: Tolerance,
    triangle_index: usize,
) -> Result<Option<RayHit3>, RayMeshError>
Expand description

Intersect a ray with a standalone triangle.

triangle_index only labels diagnostics; it is not used for geometry.