Working on a good way to wrap VTK to WASM. Right now, I am facing a problem that I had earlier with the FourPaneViewer after updating to VTK 9, the cursor actors disappears. My old fix, which works for OpenGL was to use SetRepresentationToWireframe() on the center line property.
I know @jaswantp worked on a systematic wrapping using Emscripten a year ago. I made some improvements, e.g. found a number of issues with overloads being wrapped such that they shadow each other, e.g. for AddObserver JavaScript cannot distinguish an unsigned long and a std::string in overloads. Also, the classes exposing vector properties can be wrapped using a small adapter trick.
Is this work on Emscripten wrapper stalled or is there any way to contribute on this?
Not really. It is the cursor widget (the line), which is supposed to be rendered on top of the vtkImageViewer. I could imagine that I could play with the topological ordering on the mapper (need to expose some stuff for this, but since it wasm I’m compiling anyway). I will also double check and see if I have wrapped all the necessary classes. I did everything using @jaswantp 's JavaScript wrappers.
Yea, it has pretty much stalled. But contributions are welcome. Just like most open source projects, VTK has a “Git feature branch workflow”. Developers typically fork VTK, push commits to a new branch and then create a merge request to the VTK project. After a review, approval and clean dashboards, it will be merged.
I am just thinking whether it is also possible to contribute on a stalled feature branch. A lot of wotk is needed to get to master. Yet alone in the Emscripten wrappers there is a lot work that is needed.