diff --git a/web/app/brep/geom/curves/nurbsCurve.js b/web/app/brep/geom/curves/nurbsCurve.js index a8efadaa..4d13db9b 100644 --- a/web/app/brep/geom/curves/nurbsCurve.js +++ b/web/app/brep/geom/curves/nurbsCurve.js @@ -64,4 +64,13 @@ export default class NurbsCurve { split.forEach(n => ext.normalizeCurveParametrization(n)); return split.map(c => new NurbsCurve(new verb.geom.NurbsCurve(c))); } + + serialize() { + return { + degree: this.verb.degree(), + knots: this.verb.knots(), + cp: this.verb.controlPoints(), + weights: this.verb.weights() + } + } }