[page:Curve] →

[name]

Create a smooth 3d spline curve from a series of points. Internally this uses [page:CurveUtils.interpolate] to create the curve.

Note that this will be deprecated. Please use a [page:CatmullRomCurve3] instead.

Example

[example:webgl_geometry_extrude_splines geometry / extrude / splines ] (choose PipeSpline)
//Create a closed bent a sine-like wave var curve = new THREE.SplineCurve3( [ new THREE.Vector3( -10, 0, 10 ), new THREE.Vector3( -5, 5, 5 ), new THREE.Vector3( 0, 0, 0 ), new THREE.Vector3( 5, -5, 5 ), new THREE.Vector3( 10, 0, 10 ) ] ); var geometry = new THREE.Geometry(); geometry.vertices = curve.getPoints( 50 ); var material = new THREE.LineBasicMaterial( { color : 0xff0000 } ); //Create the final object to add to the scene var splineObject = new THREE.Line( geometry, material );

Constructor

[name]( [page:Array points] )

points – An array of [page:Vector3] points that define the curve.

Properties

[property:Array points]

Methods

See [page:Curve] for inherited methods

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