MeshLib icon indicating copy to clipboard operation
MeshLib copied to clipboard

How to get the wasm file of MeshLib, I want to use it in the browser

Open LoongZP opened this issue 1 year ago • 7 comments

How to get the wasm file of MeshLib, I want to use it in the browser

LoongZP avatar Nov 07 '24 10:11 LoongZP

Hello!

Now we don't distribute wasm binaries, only way is to build meshlib locally by this guide: https://github.com/MeshInspector/MeshLib?tab=readme-ov-file#wasmemscripten

Grantim avatar Nov 07 '24 11:11 Grantim

Hello!

Can MeshLib handle non-manifold models?

LoongZP avatar Nov 07 '24 16:11 LoongZP

MeshLib internal mesh representation forbid non-manifold topologies, so any mesh converted into MeshLib format will be manifold (some vertices might be duplicated and some faces might be skipped to achieve this). https://github.com/MeshInspector/MeshLib/blob/4bc1b3b481662085766a0790f01aeece1c12790d/source/MRMesh/MRMesh.h#L37-L43

Grantim avatar Nov 07 '24 16:11 Grantim

When I try to build a docker image via emscriptenDockerfile, I get an error. I can't figure it out.

Image

Image

LoongZP avatar Nov 08 '24 11:11 LoongZP

Hello! It looks like you have not cloned submodules if MeshLib please call

git submodule update --init --recursive

Grantim avatar Nov 08 '24 12:11 Grantim

Hello!

Now we don't distribute wasm binaries, only way is to build meshlib locally by this guide: https://github.com/MeshInspector/MeshLib?tab=readme-ov-file#wasmemscripten

cannot find the guide now, and any tutorials for wasm version? how to use it in browser env?

lslzl3000 avatar Mar 22 '25 11:03 lslzl3000

@lslzl3000 We moved our documentation here https://meshlib.io/documentation/MeshLibCppSetupGuide.html#CppSetupWASM

Grantim avatar Mar 24 '25 08:03 Grantim