Ejemplo n.º 1
0
 def save_vrml(self, file_name):
     """Save to a VRML file."""
     if len(file_name) != 0:
         ex = tvtk.VRMLExporter()
         self._lift()
         ex.input = self._renwin
         ex.file_name = file_name
         self._exporter_write(ex)
Ejemplo n.º 2
0
 def write_to_VRML(self, fname):
     scene = self.scene
     if scene is not None:
         renwin = scene._renwin
         if filename:
             writer = tvtk.VRMLExporter(file_name=fname,
                                        render_window=renwin)
             writer.update()
             writer.write()