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.
-
Using
main()and-sPROXY_TO_PTHREAD=1so that emscripten auto transfers canvas to pthread: -
Without
main()and manually transfer canvas usingemscripten_pthread_attr_settransferredcanvases. SeeWrappedAsyncClipper::StartinWrappedAsyncClipper.cxx