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

13 lines (12 loc) 622 B
import type { ReactElement } from "react"; import type { NurbsCurveProps } from "./NurbsCurve"; import type { MeshProps } from "@react-three/fiber"; export interface ExtrudedSurfaceProps extends Omit<MeshProps, "geometry"> { direction: [number, number, number]; resolutionU?: number; resolutionV?: number; color?: string; wireframe?: boolean; children: ReactElement<NurbsCurveProps> | ReactElement[]; } export declare const ExtrudedSurface: ({ direction, resolutionU, resolutionV, color, wireframe, children, ...meshProps }: ExtrudedSurfaceProps) => import("react/jsx-runtime").JSX.Element | null;