#NEWLINE# def save_povray( self , file_name ) : #NEWLINE# #INDENT# 'Save scene to a POVRAY (Persistance of Vision Raytracer),\n        file (http://www.povray.org).\n\n        Keyword Arguments:\n\n        file_name -- File name to save to.\n        ' #NEWLINE# if ( not hasattr ( tvtk , 'POVExporter' ) ) : #NEWLINE# #INDENT# msg = 'Saving as a POVRAY file does not appear to be  supported by your version of VTK.' #NEWLINE# print ( msg ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( len ( file_name ) != 0 ) : #NEWLINE# #INDENT# ex = tvtk . POVExporter ( ) #NEWLINE# ex . input = self . _renwin #NEWLINE# if hasattr ( ex , 'file_name' ) : #NEWLINE# #INDENT# ex . file_name = file_name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ex . file_prefix = os . path . splitext ( file_name ) [ 0 ] #NEWLINE# #UNINDENT# ex . update ( ) #NEWLINE# ex . write ( )