I’m trying to use vtkGlyph3DMapper, however the script below fails on Jupyter Lab + Panel. Is this a problem with the script or with the libraries? Any pointers would be helpful.
import vtk
import panel as pn
pn.extension('vtk')
coneSource1 = vtk.vtkConeSource();
mapper = vtk.vtkGlyph3DMapper();
mapper.SetInputConnection(coneSource1.GetOutputPort());
coneSource = vtk.vtkConeSource();
mapper.SetSourceConnection(coneSource.GetOutputPort())
mapper.Update()
actor = vtk.vtkActor();
actor.SetMapper(mapper);
ren = vtk.vtkRenderer()
ren.AddActor(actor)
ren.ResetCamera()
win = vtk.vtkRenderWindow()
win.AddRenderer(ren)
geom_pane = pn.pane.VTK(win, width=500, height=500)
geom_pane
Gives this issue on the javascript console:
Uncaught (in promise) TypeError: t.oglmapper is undefined
traverseOpaquePass index.js:63
traverse index.js:27
traverse index.js:35
traverse index.js:75
traverseAllPasses index.js:1066