Function exact_boolean

Source
pub fn exact_boolean(
    subject: &TriMesh,
    tool: &TriMesh,
    operation: BooleanOperator,
) -> GeomResult<TriMesh>
Expand description

Compute a boolean of two interpenetrating solids, exactly.

This is the case ScalarBoolean refuses: surfaces that properly cross. Every decision is an exact predicate – the curve from orient3d signs, the retriangulation from orient2d signs, the classification from ray parity – so the result is not a tolerance approximation of the answer, it is the answer.

§Errors

Propagates the curve’s refusals: coplanar face overlap, degenerate faces, and a curve that cannot be stitched. Refusing is deliberate; a boolean that guesses in those cases is worse than one that declines.