Skip to content

Geom.bspline()

Description

A smooth 3D line passing through all specified points. Can be set with an array of points.

Syntax

JS
Geom.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
1
2
3
4
5
6
let s = Geom.bspline([
  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