Expand description
Ray casting through the solids of the geometry: for a line origin + t*dir in the local frame of a solid, find the ranges of t for which the line is inside the solid.
- Box, tube : analytic
- Boolean : the intervals of both operands are combined
- Tessellated : all crossings of the line with the mesh (watertight ray/triangle test, Woop et al., JCGT 2013) are classified as entering/leaving by the outward normal of the triangle, then turned into intervals. Crossings through shared edges and vertices are merged.
If dir has unit length, t (and thus the length of the intervals) is in mm.
Structs§
- Solid
Raycaster - Bounding boxes and acceleration structures for all solids of a geometry
Type Aliases§
- Intervals
- Disjoint ranges [t0, t1] of the line parameter, sorted in ascending order