Interactive web demo for visualizing the shape parameters
- WebAssembly - LLVM compile target for the web
- ThreeJS - 3D rendering library
- Eigen - linear algebra library
The project uses the CMake build system
Set the following environment variable:
LLVM_ROOT=/usr/local/opt/emscripten/libexec/llvm/bin
-DCMAKE_TOOLCHAIN_FILE=/home/linuxbrew/.linuxbrew/opt/emscripten/libexec/cmake/Modules/Platform/Emscripten.cmake
To copy the web related files to the build directory run:
cmake install
emcc main.cpp [header files here] -s NO_EXIT_RUNTIME=1 -s WASM=1 -O3 -s MODULARIZE=1 -s EXPORT_NAME=ManoModule -s EXTRA_EXPORTED_RUNTIME_METHODS=[ccall,cwrap] --llvm-lto 3