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) 687 B
import type { ReactElement } from "react"; import type { NurbsCurveProps } from "./NurbsCurve"; import type { MeshProps } from "@react-three/fiber"; export interface RevolvedSurfaceProps extends Omit<MeshProps, "geometry"> { center?: [number, number, number]; axis?: [number, number, number]; angle?: number; resolutionU?: number; resolutionV?: number; color?: string; wireframe?: boolean; children: ReactElement<NurbsCurveProps> | ReactElement[]; } export declare const RevolvedSurface: ({ center, axis, angle, resolutionU, resolutionV, color, wireframe, children, ...meshProps }: RevolvedSurfaceProps) => import("react/jsx-runtime").JSX.Element | null;