I’m trying this code:
const renderer = vtkRenderer.newInstance();
const renderWindow = vtkRenderWindow.newInstance();
renderWindow.addRenderer(renderer);
const renderWindowInteractor = vtkRenderWindowInteractor.newInstance();
renderWindowInteractor.setView(renderWindow);
but is throwing error:
‘TypeError: model._view.getRenderable is not a function’
Also I am using render and interactor from ‘vtk.js/Sources/Rendering/Core/RenderWindow’ and ‘vtk.js/Sources/Rendering/Core/RenderWindowInteractor’
any idea what am I doing wrong? Thank you.