Interest in cross compiling to webassembly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 1.2k
- Avg merge
- 7h 33m
- Merged PRs (30d)
- 8
Description
I'm very interested in using libigl for interactive simulations and posting them online.
Supporting webassembly and webgl through emscripten could make any application linking against this library more accessible.
I've created a branch which can do this with minimal changes. A few #ifdef, extracting the main loop, disabling comiso and embree, disabling popen and disabling wireframe mode.
If there is interest in this, I can contribute my changes as a few PRs.
This is my branch:
https://github.com/bwrsandman/libigl/tree/emscripten
Here is the webassembly interactive draw mesh tutorial:
https://bwrsandman.github.io/libigl

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked emscripten branch and the webassembly interactive draw mesh tutorial to understand the proposed scope. Compare its conditional compilation, main-loop extraction, and disabled components with the current libigl structure; done would require a clear, maintainable contribution plan for webassembly and webgl support, which the issue does not yet define.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, wasm
- Domain
- build-system, computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100