This is OpenCascade.js - a port of the OpenCascade CAD library to JavaScript and WebAssembly via emScripten.
You may encounter build issues when there are whitespaces in the path to OpenCascade.js. Its best to avoid those.
You can build OpenCascade.js yourself, as follows:
-
pip install patch requests and any other missing python dependencies
-
Get Emscripten from https://emscripten.org and set it up. See https://kripken.github.io/emscripten-site/docs/getting_started/
-
Run the build script,
python2 make.py
for the JavaScript version andpython2 make.py wasm
for the WebAssembly version. Build results are written to thedist
folder.
Certain parts of the OpenCascade API are already exposed. If you need additional API parts, go ahead and edit the opencascade.idl
file. This file defined the exposed parts of the interface via the WebIDL Interface Description Language.