occjs-fluidcad
v8.0.0
Published
A custom [occjs-wrapper](https://github.com/marwndev/occjs-wrapper) build for FluidCAD. This is a smaller, multi-threaded build of opencascade.js with only the modules needed by FluidCAD.
Readme
OCCJS-FluidCAD
A custom occjs-wrapper build for FluidCAD. This is a smaller, multi-threaded build of opencascade.js with only the modules needed by FluidCAD.
Installation
npm install occjs-fluidcadUsage
Browser
Requires SharedArrayBuffer, which needs COOP/COEP headers on your server.
import initOpenCascade from 'occjs-fluidcad';
const oc = await initOpenCascade();Node.js
import initOpenCascade from 'occjs-fluidcad/node';
const oc = await initOpenCascade();Importing types
import initOpenCascade from 'occjs-fluidcad';
import { gp_Pnt } from 'occjs-fluidcad';