Skip to content

Port of the OpenCascade library to JavaScript / WebAssembly using emScripten

License

Notifications You must be signed in to change notification settings

antonymarion/opencascade.js

 
 

Repository files navigation

OpenCascade.js

This is OpenCascade.js - a port of the OpenCascade CAD library to JavaScript and WebAssembly via emScripten.

Build

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:

  1. pip install patch requests and any other missing python dependencies

  2. Get Emscripten from https://emscripten.org and set it up. See https://kripken.github.io/emscripten-site/docs/getting_started/

  3. Run the build script, python2 make.py for the JavaScript version and python2 make.py wasm for the WebAssembly version. Build results are written to the dist folder.

Exposing additional OpenCascade API parts

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.

About

Port of the OpenCascade library to JavaScript / WebAssembly using emScripten

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.1%
  • Python 23.5%
  • C 1.4%