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

16 lines (15 loc) 751 B
import type { ReactElement } from "react"; import { BufferGeometry } from "three"; import type { Mesh } from "three"; import type { MeshProps } from "@react-three/fiber"; export interface InterpolatedSurfaceProps extends Omit<MeshProps, "geometry" | "ref"> { points: number[][][]; degreeU?: number; degreeV?: number; resolutionU?: number; resolutionV?: number; color?: string; wireframe?: boolean; children?: ReactElement; } export declare const InterpolatedSurface: import("react").ForwardRefExoticComponent<InterpolatedSurfaceProps & import("react").RefAttributes<Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap>>>;