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) 626 B
import type { ReactElement } from "react"; import type { MeshProps } from "@react-three/fiber"; export interface TrimmedSurfaceProps extends Omit<MeshProps, "geometry"> { color?: string; trimCurveResolution?: number; adaptiveMaxAngleDeg?: number; adaptiveMaxDepth?: number; wireframe?: boolean; world?: boolean; children?: ReactElement | ReactElement[]; } export declare function TrimmedSurface({ color: _color, trimCurveResolution, adaptiveMaxAngleDeg, adaptiveMaxDepth, wireframe: _wireframe, world, children, ...meshProps }: TrimmedSurfaceProps): import("react/jsx-runtime").JSX.Element | null;