Skip to content

Geom.unite()

Description

Boolean operation: Combine two or more shapes.

Syntax

JS
Geom.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
1
2
3
4
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:
Last update: 14 August 2025, 18:47