Expand description
Where a point sits relative to a shape.
Three answers, never two: inside, outside, or on the boundary within tolerance. The third is not a hedge. Geometry that meets is the normal case in a kernel (a boolean’s whole job is finding it), and a classifier that forces every point to one side has to pick, silently, for exactly the points where the choice matters most.
§Accuracy
classify_in_solid and classify_on_face work from the tessellation,
so a point nearer the boundary than the deflection cannot be told from one
on it. That is reported as Containment::On rather than guessed: the
band the answer is uncertain within is the deflection, and saying so is the
difference between an approximate answer and a wrong one.
Tightening the deflection narrows the band. It never removes it: the
exact question needs ray/surface intersection, which is
classify_in_solid_exact: rays cast against the faces’ true surfaces,
where the uncertain band shrinks from the deflection to the tolerance.
Structs§
- Solid
Boundary - A solid’s boundary, prepared once and asked about many points.
Enums§
- Containment
- Where a point sits relative to a shape.
Functions§
- classify_
in_ solid - Where a point sits relative to a closed shell or solid.
- classify_
in_ solid_ exact - Where a point sits relative to a closed shell or solid, decided against the true surfaces.
- classify_
in_ solid_ exact_ banded classify_in_solid_exactwith the boundary band under the caller’s control.- classify_
on_ face - Where a point sits relative to a face.