Doubt with VTK wasm

I have been trying to use the vtk wasm sdk 64 bit with workers for the rendering of openfoam files but am getting issue unable to transfer the canvas to the wasm.

can you share error message? it requires some setup to get it working.

Here are example codes you can look at to understand how to transfer canvas to a thread. PThreads can be used in wasm in two configurations.

  1. Using main() and -sPROXY_TO_PTHREAD=1 so that emscripten auto transfers canvas to pthread:

  2. Without main() and manually transfer canvas using emscripten_pthread_attr_settransferredcanvases. See WrappedAsyncClipper::Start in WrappedAsyncClipper.cxx