Skip to main content

boolean_operation_nary

Function boolean_operation_nary 

Source
pub fn boolean_operation_nary(
    operands: &[BrepSolid],
    operation: BooleanOperation,
) -> Result<BrepSolid, KernelRefusal>
Expand description

N-ary union / intersect / subtract of operands in ONE imprint+fragment pass (Golovanov T4.4). Additive: does not touch the binary path.

  • Union : the boundary of ∪ operands.
  • Intersect: the boundary of ∩ operands.
  • Subtract: operands[0] minus the union of operands[1..].

N = 1 returns the sole operand; N = 2 runs the same general pipeline and reproduces the binary result (same volume, valid). Returns a clear Err when the operands cannot assemble into a closed, valid solid.