/opencascade.js

Port of the OpenCascade CAD library to JavaScript and WebAssembly via Emscripten.

Primary LanguagePythonGNU Lesser General Public License v2.1LGPL-2.1

Build OpenCascade.js OpenCascade Version

Logo

OpenCascade.js

A port of the OpenCascade CAD library to JavaScript and WebAssembly via Emscripten.
Explore the docs »

Examples · Issues · Discuss

Projects & Examples:

Contributing

Contributions are welcome! Feel free to have a look at the todo-list if you need some inspiration on what else needs to be done.

Install dependencies

# these should live next to .../opencascade.js
git clone -b v1.1.0 https://github.com/Tencent/rapidjson.git
git clone -b VER-2-13-0 https://github.com/freetype/freetype.git
# Download and extract OCCT:
OCCT_COMMIT_HASH_FULL=bd2a789f15235755ce4d1a3b07379a2e062fdc2e
curl "https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=${OCCT_COMMIT_HASH_FULL};sf=tgz" | tar -xvf - --strip-components=1

Generate bindings

python generateBindings.py
# writes bindings code to build/bindings

Compile

python compileSources.py
python compileBindings.py