[page:Curve] →

# [name]

Create a smooth 2d spline curve from a series of points. Internally this uses [page:Interpolations.CatmullRom] to create the curve.

## Example

`// Create a sine-like wave var curve = new THREE.SplineCurve( [ new THREE.Vector2( -10, 0 ), new THREE.Vector2( -5, 5 ), new THREE.Vector2( 0, 0 ), new THREE.Vector2( 5, -5 ), new THREE.Vector2( 10, 0 ) ] ); var points = curve.getPoints( 50 ); var geometry = new THREE.BufferGeometry().setFromPoints( points ); 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]( [param:Array points] )

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

## Properties

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

### [property:Boolean isSplineCurve]

Used to check whether this or derived classes are SplineCurves. Default is *true*.
You should not change this, as it used internally for optimisation.

### [property:Array points]

The array of [page:Vector2] points that define the curve.

## Methods

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

## Source

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