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
10 lines (9 loc) • 457 B
TypeScript
import type { LineProps } from "@react-three/drei";
export interface NurbsCurveProps extends Omit<LineProps, "points" | "resolution"> {
points: number[][];
degree?: number;
weights?: number[];
knots?: number[];
resolution?: number;
}
export declare const NurbsCurve: ({ points, degree, weights, knots, resolution, color, segments, dashed, vertexColors, ...lineProps }: NurbsCurveProps) => import("react/jsx-runtime").JSX.Element | null;