Geom.unite()
Description
Boolean operation: Combine two or more shapes.
Syntax
JSGeom.unite(a: Shape, b: Shape) -> Shape
Geom.unite(shapes: Array<Point3>) -> Shape
 
Parameters
| Parameter | Type | Default Value | Mandatory | Description | 
| a | Shape | — |  | First shape to combine | 
| b | Shape | — |  | Second shape to combine | 
| shapes | Array<Point3> | — |  | Array of shapes to combine | 
Return value
| Type | Description | 
| Shape | Object of type Shape, result of combination | 
Example
| JS | 
|---|
|  | let box = Geom.box(100, 100, 100);
let cyl = Geom.cylinder(50, 150);
let result = Geom.unite(box, cyl) // box + cyl
console.info(result) // output:
 |