Skip to content
brep-conformancegithub

difference_all

Booleans · api.md § difference_all · all operations

difference_all(target: Solid, tools: list<Solid>) -> Solid

Cuts one or more tools from target in one call. tools must list at least one tool. Returns the regularized difference, which is the same as the result of difference applied to target one tool at a time, in any order.

Example. Solid 1 is a 10 × 20 × 30 mm box with one corner at the origin. Solid 2 is a cylinder of radius 5 and height 20 on the z axis. Solid 3 is a ball 30 mm away.

> {"cmd": "difference_all", "target": 1, "tools": [2, 3]}
< {"ok": 4}

Every boolean returns the regularized set operation, which is the closure of the interior of the set result. The result may be empty. It may also be several pieces, touching as Types allows. Pieces that share an area of boundary are returned as one. The operands are left as they were.

FunctionFieldsReturns
uniona, bSolid
intersectiona, bSolid
differencea, bSolid
union_allsolidsSolid
difference_alltarget, toolsSolid