react-three-nurbs
Version:
A React component library for NURBS (Non-Uniform Rational B-Spline) curves, surfaces, and solids in Three.js. Built with React Three Fiber, zero external NURBS dependencies — all math implemented from scratch. Boolean operations powered by OpenCASCADE WAS
19 lines (18 loc) • 792 B
TypeScript
import { NurbsCurve, NurbsSurface } from "../core";
/**
* Refine a curve by inserting additional knots without changing its shape.
*/
export declare function curveKnotRefine(curve: NurbsCurve, knotsToInsert: number[]): NurbsCurve;
/**
* Refine a surface by inserting additional knots in U or V direction.
*/
export declare function surfaceKnotRefine(surface: NurbsSurface, knotsToInsert: number[], useV: boolean): NurbsSurface;
/**
* Elevate the degree of a curve.
*/
export declare function curveElevateDegree(curve: NurbsCurve, finalDegree: number): NurbsCurve;
/**
* Unify knot vectors across multiple curves (same degree + knots).
* Required before operations like lofting with incompatible curves.
*/
export declare function unifyCurveKnots(curves: NurbsCurve[]): NurbsCurve[];