Skip to content

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

License

Notifications You must be signed in to change notification settings

ricochet1k/opencascade.js

 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.3%
  • TypeScript 30.7%
  • JavaScript 11.1%
  • CSS 3.2%
  • HTML 2.5%
  • Shell 1.6%
  • Other 2.6%