Geom.section()
Description
Creating a section.
Syntax
JSGeom.section(a: Shape, b: Shape) -> Shape
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
a |
Shape |
— |
 |
First solid for calculating the section |
b |
Shape |
— |
 |
Second solid for calculating the section |
Return value
Type |
Description |
Shape |
Object of type Shape , representing the result of the section of two solids. |
Example
JS |
---|
| let a = Geom.box(100, 100, 100)
let b = Geom.inflate(Geom.point3(50,50,50), Geom.vector(100, 100, 100))
let result = Geom.section(a, b)
console.info(result) // output:
|
Last update: 14 August 2025, 18:47