Geom.bspline()
Description
A smooth 3D line passing through all specified points. Can be set with an array of points.
Syntax
JSGeom.bspline(points: Array<Point3>, closed: Boolean = false) -> Shape
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
points |
Array<Point3> |
— |
 |
Array of points to build a smooth curve. |
closed |
Boolean |
true |
❌ |
Flag indicating the closure of line. |
Return value
Type |
Description |
Shape |
B-spline. |
Example
JS |
---|
| let s = Geom.bspline([
Geom.point3(10, 10, 10),
Geom.point3(20, 20, 20),
Geom.point3(30, 30, 30),
]);
console.info(s); // output:
|
Last update: 15 August 2025, 14:32