Geom.segment()
Description
Creates a 3D segment. A 3D segment is defined by two points.
Syntax
JSGeom.segment(p1: Point3, p2: Point3) -> Shape
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
p1 |
Point3 |
— |
 |
Starting point of the segment |
p2 |
Point3 |
— |
 |
Ending point of the segment |
Return value
Type |
Description |
Shape |
Object of type Shape , representing the segment. |
Example
JS |
---|
| let s = Geom.segment(Geom.point3(10,10,10), Geom.point3(20,20,20))
console.info(s) // output:
|
Last update: 14 August 2025, 18:47