UNPKG

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) 881 B
import { NurbsCurve as NurbsCurveCore } from "../core"; import type { LineProps } from "@react-three/drei"; export interface OffsetCurveProps extends Omit<LineProps, "points" | "resolution"> { /** Source curve to offset. Provide either this or sourceCurve. */ sourcePoints?: number[][]; sourceDegree?: number; sourceKnots?: number[]; sourceWeights?: number[]; /** Or provide a NurbsCurve directly */ sourceCurve?: NurbsCurveCore; distance: number; planeNormal?: [number, number, number]; samples?: number; degree?: number; resolution?: number; color?: string; } export declare const OffsetCurve: ({ sourcePoints, sourceDegree, sourceKnots, sourceWeights, sourceCurve: sourceCurveProp, distance, planeNormal, samples, degree, resolution, color, ...lineProps }: OffsetCurveProps) => import("react/jsx-runtime").JSX.Element | null;