File: NURBSCurve.md | Updated: 11/15/2025
This class represents a NURBS curve.
Implementation is based on (x, y [, z=0 [, w=1]]) control points with w=weight.
NURBSCurve is an addon, and must be imported explicitly, see Installation#Addons.
import { NURBSCurve } from 'three/addons/curves/NURBSCurve.js';
Constructs a new NURBS curve.
degree | The NURBS degree.
---|---
knots | The knots as a flat array of numbers.
controlPoints | An array holding control points.
startKnot | Index of the start knot into the knots array.
endKnot | Index of the end knot into the knots array.
An array of control points.
The NURBS degree.
Index of the end knot into the knots array.
The knots as a flat array of numbers.
Index of the start knot into the knots array.
This method returns a vector in 3D space for the given interpolation factor.
t | A interpolation factor representing a position on the curve. Must be in the range [0,1].
---|---
optionalTarget | The optional target vector the result is written to.
Overrides: Curve#getPoint
Returns: The position on the curve.
Returns a unit vector tangent for the given interpolation factor.
t | The interpolation factor.
---|---
optionalTarget | The optional target vector the result is written to.
Overrides: Curve#getTangent
Returns: The tangent vector.