Geom.intersect()
Description
Boolean operation: get the intersection of two or more solids.
Syntax
JSGeom.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 | 
|---|
|  | 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:
 |