#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# vtk_object = None #NEWLINE# if self . has_input ( 'SetInput' ) : #NEWLINE# #INDENT# port_object = self . get_input ( 'SetInput' ) #NEWLINE# if hasattr ( port_object , 'vtkInstance' ) : #NEWLINE# #INDENT# vtk_object = port_object . vtkInstance #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ModuleError ( self , 'expected a vtk module' ) #NEWLINE# #UNINDENT# #UNINDENT# if port_object : #NEWLINE# #INDENT# self . auto_set_results ( vtk_object )