#NEWLINE# def save_x3d( self , file_name ) : #NEWLINE# #INDENT# 'Save scene to an X3D file (http://www.web3d.org/x3d/).\n\n        Keyword Arguments:\n\n        file_name -- File name to save to.\n        ' #NEWLINE# if ( not hasattr ( tvtk , 'X3DExporter' ) ) : #NEWLINE# #INDENT# msg = 'Saving as a X3D 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 . X3DExporter ( ) #NEWLINE# ex . input = file_name . _renwin #NEWLINE# ex . file_name = file_name #NEWLINE# ex . update ( ) #NEWLINE# ex . write ( )