Skip to content

Geom.polysegment()

Description

A polysegment is a 3D curve consisting of multiple line segments. It can be set with an array of points points.

Syntax

JS
Geom.polysegment(points: Array<Point3>, closed: Boolean = false) -> Shape

Parameters

Parameter Type Default Value Mandatory Description
points Array<Point3> ✅ An array of vertices of the polyline.
closed Boolean false If true, the polyline is closed from end to start.

Return value

Type Description
Shape An object of type Shape, representing the polyline.

Example

JS
let s = Geom.polysegment([Geom.point3(10,10,10), Geom.point3(20,20,20), Geom.point3(30,30,30)])
console.info(s) // output:

See Also

Last update: 15 August 2025, 14:32