union_all
Booleans · api.md § union_all · all operations
definition
union_all(solids: list<Solid>) -> Solid
Joins two or more solids in one call. solids must list at least two solids. Returns their regularized union, which is the same as the result of union applied to the solids one at a time, in any order. A pattern is a union_all over copies of a solid moved by transform.
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": "union_all", "solids": [1, 2, 3]}
< {"ok": 4}common to booleans
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.
| Function | Fields | Returns |
|---|---|---|
union | a, b | Solid |
intersection | a, b | Solid |
difference | a, b | Solid |
union_all | solids | Solid |
difference_all | target, tools | Solid |