Skip to content

Geom.intersect()

Description

Boolean operation: get the intersection of two or more solids.

Syntax

JS
Geom.intersect(a: Shape, b: Shape) -> Shape
Geom.intersect(shapes: Array<Point3>) -> Shape

Parameters

Parameter Type Description
a Shape Solid 1.
b Shape Solid 2.
shapes Array<Point3> Array of solids for intersection.

Return value

Type Description
Shape Object of type Shape, result of intersection of solids.

Example

JS
1
2
3
4
let box = Geom.box(100, 100, 100);
let cyl = Geom.cylinder(50, 150);
let s1 = Geom.intersect(box, cyl); // box & cyl
console.info(s1); // output:
Last update: 15 August 2025, 14:32