If you don’t find a Python example for something then it would be great if you could convert it and contribute it to the example repository. Converting VTK C++ examples to Python is fairly straightforward (replace ->
and ::
by .
, construct objects as someObject = vtk.vtkSomeClass()
), but if anything is not clear then let us know.
You can also have a look at the syntax used in VTK glTF exporter in Python in 3D Slicer’s OpenAnatomy extension: https://github.com/PerkLab/SlicerOpenAnatomy/blob/6998a875900f1be8e4a278b56f44582aadc7ce6e/OpenAnatomyExport/OpenAnatomyExport.py#L153-L276