Skip to content

Add async vtk.wasm examples with web worker and vtkAlgorithm abort

  • Adds two new examples demonstrating usage of web workers in vtk.wasm. They both use vtkAlgorithm abort functionality to enable more responsive VTK web applications.
  • The basic example AsyncClipper uses a main() function and the -sPROXY_TO_PTHREAD link flag which does all the heavy lifting of running main() itself on a new thread and transferring the canvas for offscreen rendering.
  • The second example WrappedAsyncClipper doesn't have a main() and is entirely driven from javascript through custom bindings. It shows in detail how to transfer the canvas offscreen to the newly created pthread.

Screen_Recording_2024-08-12_095655

Edited by Jaswant Panchumarti (Kitware)

Merge request reports

Loading