Beispiel #1
0
 def __init__(self, module_manager):
     SimpleVTKClassModuleBase.__init__(
         self, module_manager,
         vtk.vtkMCubesWriter(), 'Writing vtkMCubes.',
         ('vtkMCubes',), (),
         replaceDoc=True,
         inputFunctions=None, outputFunctions=None)
Beispiel #2
0
 def __init__(self, module_manager):
     SimpleVTKClassModuleBase.__init__(self,
                                       module_manager,
                                       vtk.vtkMCubesWriter(),
                                       'Writing vtkMCubes.',
                                       ('vtkMCubes', ), (),
                                       replaceDoc=True,
                                       inputFunctions=None,
                                       outputFunctions=None)
Beispiel #3
0
     iv3 = vtk.vtkIVWriter()
     iv3.SetInputConnection(edges.GetOutputPort())
     iv3.SetFileName("brain3.iv")
     iv3.Write()
     file.delete("-force", "brain3.iv")
     pass
 byu = vtk.vtkBYUWriter()
 byu.SetGeometryFileName("brain.g")
 byu.SetScalarFileName("brain.s")
 byu.SetDisplacementFileName("brain.d")
 byu.SetInputConnection(triangles.GetOutputPort())
 byu.Write()
 file.delete("-force", "brain.g")
 file.delete("-force", "brain.s")
 file.delete("-force", "brain.d")
 mcubes = vtk.vtkMCubesWriter()
 mcubes.SetInputConnection(triangles.GetOutputPort())
 mcubes.SetFileName("brain.tri")
 mcubes.SetLimitsFileName("brain.lim")
 mcubes.Write()
 file.delete("-force", "brain.lim")
 file.delete("-force", "brain.tri")
 stl = vtk.vtkSTLWriter()
 stl.SetInputConnection(triangles.GetOutputPort())
 stl.SetFileName("brain.stl")
 stl.Write()
 file.delete("-force", "brain.stl")
 stlBinary = vtk.vtkSTLWriter()
 stlBinary.SetInputConnection(triangles.GetOutputPort())
 stlBinary.SetFileName("brainBinary.stl")
 stlBinary.SetFileType(2)
     iv3 = vtk.vtkIVWriter()
     iv3.SetInputConnection(edges.GetOutputPort())
     iv3.SetFileName("brain3.iv")
     iv3.Write()
     file.delete("-force", "brain3.iv")
     pass
 byu = vtk.vtkBYUWriter()
 byu.SetGeometryFileName("brain.g")
 byu.SetScalarFileName("brain.s")
 byu.SetDisplacementFileName("brain.d")
 byu.SetInputConnection(triangles.GetOutputPort())
 byu.Write()
 file.delete("-force", "brain.g")
 file.delete("-force", "brain.s")
 file.delete("-force", "brain.d")
 mcubes = vtk.vtkMCubesWriter()
 mcubes.SetInputConnection(triangles.GetOutputPort())
 mcubes.SetFileName("brain.tri")
 mcubes.SetLimitsFileName("brain.lim")
 mcubes.Write()
 file.delete("-force", "brain.lim")
 file.delete("-force", "brain.tri")
 stl = vtk.vtkSTLWriter()
 stl.SetInputConnection(triangles.GetOutputPort())
 stl.SetFileName("brain.stl")
 stl.Write()
 file.delete("-force", "brain.stl")
 stlBinary = vtk.vtkSTLWriter()
 stlBinary.SetInputConnection(triangles.GetOutputPort())
 stlBinary.SetFileName("brainBinary.stl")
 stlBinary.SetFileType(2)