I would like to have this in a stand-alone library, written in Python. Could you point me to the implementation of this feature in the code? I looked at vtkSlicerModelsLogic, vtkMRMLModelDisplayNode, and qMRMLModelDisplayNodeWidget, but I could not figure out where is the code to transform a mesh into a 2D image.