Add simple wasm example using web worker and vtkAlgorithm abort
- This example has a simple `main` function which sets up the VTK pipeline using vtkTableBasedClipDataSet. - It shows how one might leverage the vtkAlgorithm abort functionality because now all the VTK rendering and processing is offloaded into a web worker leaving the main thread free to go and set the abort flag. - In this example, the abort flag is set whenever user mouses down and moves the cursor on the canvas. As soon as the mouse is released, the abort flag is reset.
Showing
- Examples/Emscripten/Cxx/AsyncClipper/AsyncClipper.cxx 199 additions, 0 deletionsExamples/Emscripten/Cxx/AsyncClipper/AsyncClipper.cxx
- Examples/Emscripten/Cxx/AsyncClipper/CMakeLists.txt 144 additions, 0 deletionsExamples/Emscripten/Cxx/AsyncClipper/CMakeLists.txt
- Examples/Emscripten/Cxx/AsyncClipper/README.md 27 additions, 0 deletionsExamples/Emscripten/Cxx/AsyncClipper/README.md
- Examples/Emscripten/Cxx/AsyncClipper/index.html 56 additions, 0 deletionsExamples/Emscripten/Cxx/AsyncClipper/index.html
- Examples/Emscripten/Cxx/AsyncClipper/server.py 43 additions, 0 deletionsExamples/Emscripten/Cxx/AsyncClipper/server.py
Loading
Please register or sign in to comment