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

18 lines (17 loc) 510 B
/** * Lazy loader for the custom OpenCASCADE WASM module. * The WASM (~5MB) is only loaded when boolean operations are first used. */ /** * Get the OpenCASCADE instance. Loads the WASM on first call. * Subsequent calls return the cached instance. */ export declare function getOC(): Promise<any>; /** * Initialize with a user-provided OpenCASCADE instance. */ export declare function setOC(instance: any): void; /** * Check if OpenCASCADE is loaded. */ export declare function isOCLoaded(): boolean;