I am working in Python (vtk
with ipywidgets
) and want to annotate my 3D glyphs with information (i.e. data point number etc)
I see there is something available in C++ but I cannot find a method to perform the same in Python.
https://kitware.github.io/vtk-examples/site/Cxx/Visualization/BillboardTextActor3D/
Example code of what I am currently generating
class SpherePipeline:
def __init__(self, radius=0.03):
self.radius = radius
self.sphereSrc = vtk.vtkSphereSource()
self.sphereSrc.SetRadius(self.radius)
self.glyphs = vtk.vtkGlyph3D()
self.glyphs.ScalingOff()
self.glyphs.SetSourceConnection(self.sphereSrc.GetOutputPort())
def setInput(self, data):
self.glyphs.SetInputData(data)
...