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) • 558 B
TypeScript
import type { BooleanOperation, BooleanMeshResult, ShapeDescriptor } from "../occt/boolean";
export interface UseBooleanOperationOptions {
shapeA: ShapeDescriptor | null;
shapeB: ShapeDescriptor | null;
operation: BooleanOperation;
meshDeflection?: number;
}
export interface UseBooleanOperationResult {
mesh: BooleanMeshResult | null;
isComputing: boolean;
error: string | null;
}
export declare function useBooleanOperation({ shapeA, shapeB, operation, meshDeflection, }: UseBooleanOperationOptions): UseBooleanOperationResult;