Skip to main content

Module classify

Module classify 

Source
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§

SolidBoundary
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_exact with the boundary band under the caller’s control.
classify_on_face
Where a point sits relative to a face.