[page:Curve] →

[name]

An abstract base class extending [page:Curve]. A CurvePath is simply an array of connected curves, but retains the api of a curve.

Constructor

[name]()

The constructor take no parameters.

Properties

See the base [page:Curve] class for common properties.

[property:array curves]

The array of [page:Curve Curves].

[property:boolean autoClose]

Whether or not to automatically close the path.

Methods

See the base [page:Curve] class for common methods.

[method:null add]([page:Curve curve])

Add a curve to the [page:.curves] array.

[method:null closePath]()

Adds a [page:LineCurve lineCurve] to close the path.

[method:Geometry createGeometry]([page:Vector3 points])

points -- An array of [page:Vector3 Vector3s]

Creates a geometry from points

[method:Geometry createPointsGeometry]([page:Integer divisions])

divisions -- How many segments to create. Defaults to *12*.

Creates a [page:Geometry] object comprised of [page:Vector3 Vector3s], for example to be used with [page:Line] or [page:Points]. Uses [page:Curve.getPoints]() for the division.

[method:Geometry createSpacedPointsGeometry]([page:Integer divisions])

divisions -- How many segments to create. Defaults to *12*.

Creates a [page:Geometry] object comprised of [page:Vector3]s that are equidistant, for example to be used with [page:Line] or [page:Points]. Uses [page:Curve.getSpacedPoints]() for the division.

[method:Float getCurveLengths]()

Adds together the lengths of the curves in the [page:.curves] array.
[sourceHint]