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) 559 B
import { NurbsSurface } from "../core"; import type { SurfaceGeometry } from "./useNurbsSurface"; export interface UseInterpolatedSurfaceOptions { points: number[][][]; degreeU?: number; degreeV?: number; resolutionU?: number; resolutionV?: number; } export interface UseInterpolatedSurfaceResult { surface: NurbsSurface | null; geometry: SurfaceGeometry | null; } export declare function useInterpolatedSurface({ points, degreeU, degreeV, resolutionU, resolutionV, }: UseInterpolatedSurfaceOptions): UseInterpolatedSurfaceResult;