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

15 lines (14 loc) 527 B
import { Vector3 } from "three"; import { NurbsCurve } from "../core"; export interface UseInterpolatedCurveOptions { throughPoints: number[][]; degree?: number; resolution?: number; } export interface UseInterpolatedCurveResult { curve: NurbsCurve | null; points: Vector3[]; point: (t: number) => Vector3 | null; tangent: (t: number) => Vector3 | null; } export declare function useInterpolatedCurve({ throughPoints, degree, resolution, }: UseInterpolatedCurveOptions): UseInterpolatedCurveResult;