[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]( [param:Curve curve] )

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

[method:null closePath]()

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

[method:Array getCurveLengths]()

Get list of cumulative curve lengths of the curves in the [page:.curves] array.

[method:Vector getPoint]( [param:Float t] )

[page:Float t] - A position on the curve. Must be in the range [ 0, 1 ].

Returns a vector for a given position on the curve path.

[method:Array getPoints]( [param:Integer divisions] )

divisions -- number of pieces to divide the curve into. Default is *12*.

Returns a set of divisions + 1 points using getPoint( t ).

[method:Array getSpacedPoints]( [param:Integer divisions] )

divisions -- number of pieces to divide the curve into. Default is *40*.

Returns a set of divisions + 1 equi-spaced points using getPointAt( u ).

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]