boolean

Function boolean 

Source
pub fn boolean(a: &[Tri], b: &[Tri], op: BoolOp) -> Vec<Tri> ⓘ
Expand description

Compute the boolean op of operand meshes a and b, materialised to f64 triangles. A−B = (A outside B) ∪ flip(B inside A); A∪B = (A outside B) ∪ (B outside A); A∩B = (A inside B) ∪ (B inside A).

This deliberately does NOT gate on Arrangement::unrecovered the way difference_all does — see boolean_with_conformity, which computes the identical result and additionally surfaces that signal for callers that want it (diagnostics; issue #3353’s classification-level tear).