[page:Curve] →

# [name]

Create a smooth 2d spline curve from a series of points

## 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 path = new THREE.Path( curve.getPoints( 50 ) ); var geometry = path.createPointsGeometry( 50 ); var material = new THREE.LineBasicMaterial( { color : 0xff0000 } ); // Create the final Object3d to add to the scene var splineObject = new THREE.Line( geometry, material );`

## Constructor

### [name]( [page:Array points] )

points – An array of [page:Vector2] points

## Properties

### [property:Array points]

## Methods

### See [page:Curve] for inherited methods

## Source

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