surface reconstruction in javascript

@Donny_Zimmerman you mentioned that you do all VTK-related functionalities in WASM. that’s super interesting. So how you mean doing them all in WASM? because I’m not doing anything with WASM, except the WASM file is generated file when I build cxx file with Emscripten. So how can I do them all? you mean in c++ program connect to the server and read the data? so it’s like implementing the whole web app functionality in c++?

regarding your question, Well, actually I was having two files because in the first one I was using VTK.js and so building it with npm every time, to work with the generated app.js in my page. In the other js file I was trying to use VTK functionality that’s not in VTK.js, by building those functionalities from VTK c++ using Emscripten.

thank you, now I combined the two js files into one. So now I’m:
1-building the a.cxx (VTK app) into a.js and a.wasm using Emscripten
2-I add a.js content to the b.js in which I’m using VTK.js functionalities
3-build b.js using NPM into app.js
4-use the resulting app.js in my application

So I made a function in a.cxx that taking a polydata, returns a surface. but after the first step I’m not sure how to access and use that function in b.js. that’s what is not clear to me and I’m trying to see where I should restructure. then maybe the answer is in your next comment, knowing how you do almost everything in WASM.
So, looking forward to that.