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
13 lines (12 loc) • 552 B
TypeScript
import type { LineProps } from "@react-three/drei";
export interface NurbsArcProps extends Omit<LineProps, "points" | "resolution"> {
center?: [number, number, number];
radius?: number;
xaxis?: [number, number, number];
yaxis?: [number, number, number];
startAngle?: number;
endAngle?: number;
resolution?: number;
color?: string;
}
export declare const NurbsArc: ({ center, radius, xaxis, yaxis, startAngle, endAngle, resolution, color, ...lineProps }: NurbsArcProps) => import("react/jsx-runtime").JSX.Element | null;