Error in vtkGenericRenderWindow for vtk.js

Hi, i’m trying to use vtk.js with vue.js for 2D visualisation of 3D volumes. I tried calling vtkGenericRenderWindow.newInstance() in the onMounted hook of my component, but it would throw this error from inside the vtk.js implementation:

Uncaught TypeError: renNode is undefined
in traverse ForwardPass.js:43 (vtk.js implementation)

If you want to see how to connect a vtkRenderWindow into a view component, you can look at that code.

1 Like

Thank you! the issue turned out to be missing the import @kitware/vtk.js/Rendering/Profiles/Volume

1 Like