diff --git a/types/three/examples/jsm/curves/NURBSCurve.d.ts b/types/three/examples/jsm/curves/NURBSCurve.d.ts index c49b53048..9f26b9abf 100644 --- a/types/three/examples/jsm/curves/NURBSCurve.d.ts +++ b/types/three/examples/jsm/curves/NURBSCurve.d.ts @@ -1,4 +1,12 @@ -import { Curve, Vector2, Vector3, Vector4 } from "three"; +import { Curve, CurveJSON, Vector2, Vector3, Vector4 } from "three"; + +export interface NURBSCurveJSON extends CurveJSON { + degree: number; + knots: number[]; + controlPoints: number[][]; + startKnot: number; + endKnot: number; +} export class NURBSCurve extends Curve { degree: number; @@ -14,4 +22,7 @@ export class NURBSCurve extends Curve { startKnot?: number, endKnot?: number, ); + + toJSON(): NURBSCurveJSON; + fromJSON(json: NURBSCurveJSON): this; }