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

14 lines (13 loc) 659 B
import type { ReactElement } from "react"; import type { MeshProps } from "@react-three/fiber"; import type { BooleanOperation, ShapeDescriptor } from "../occt/boolean"; export interface BooleanResultProps extends Omit<MeshProps, "geometry" | "ref"> { shapeA: ShapeDescriptor | null; shapeB: ShapeDescriptor | null; operation: BooleanOperation; meshDeflection?: number; color?: string; wireframe?: boolean; children?: ReactElement; } export declare const BooleanResult: ({ shapeA, shapeB, operation, meshDeflection, color, wireframe, children, ...meshProps }: BooleanResultProps) => import("react/jsx-runtime").JSX.Element | null;