CatmullRomCurve3

new CatmullRomCurve3(points?: Vector3[], closed?, curveType?, tension?)
THREE: THREE.CatmullRomCurve3

3D Catmull-Rom spline through a set of control points. Supports centripetal, chordal, and catmullrom curve types.

Properties

NameTypeDescription
points

Vector3[]

Control points the spline passes through.

closed

boolean

Whether the curve loops. Default false.

curveType

string

'centripetal', 'chordal', or 'catmullrom'. Default 'centripetal'.

tension

number

Tension parameter for catmullrom type. Default 0.5.

Methods

MethodDescription
getPoint(t: number, target?: Vector3): Vector3

Returns the point at parameter t.