libigl / libigl/libigl

Interest in cross compiling to webassembly

Open
#1,419 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

Screenshot from 2020-02-09 20-22-58

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.