Module ray_mesh

Source
Expand description

Narrow-phase ray/triangle-mesh nearest-hit intersection.

Composes with the spatial broad phase: a caller can feed BVH candidate keys into nearest_hit_among, or scan a whole mesh with nearest_hit.

Structs§

RayHit3
One nearest-hit record.

Enums§

FaceSide
Which side of a triangle the ray arrived from.
RayMeshError
Fail-closed reasons a ray/mesh query cannot produce an answer.

Functions§

intersect_triangle
Intersect a ray with a standalone triangle.
nearest_hit
Nearest hit over every triangle of mesh.
nearest_hit_among
Nearest hit over caller-supplied candidate triangles.
triangle_hit
Intersect one triangle of mesh, reporting the hit or a certified miss.