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§
- Face
Side - Which side of a triangle the ray arrived from.
- RayMesh
Error - 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.