@dgobbi The script seems to work quite well, I had to do a couple of little changes and bring in the option to manually add some imports in a similar way to what we do when developing C++ code. For example ElevationBandsWithGlyphs needs
# noinspection PyUnresolvedReferences
import vtkmodules.vtkRenderingOpenGL2
whilst CurvatureBandsWithGlyphs does not. Excepting for the need to include numpy stuff, the imports are almost identical. The same modules are used - just differing by imported classes. This was tested with PyCharm and on the command line using vtkpython and also python directly. Other code, for example CurvaturesAdjustEdges, also doesn’t need to import vtkRenderingOpenGL2
.
Another interesting thing when using PyCharm is that
from vtkmodules.vtkInteractionWidgets import vtkCameraOrientationWidget
trigers a Cannot find reference 'vtkCameraOrientationWidget' in '__init__.py'
in Windows but not in Linux.