[vtkusers] vtkPolyDataWriter in vtkpython
Olumide
50295 at web.de
Tue May 12 21:57:46 EDT 2009
Hello,
I would like to create several objects/primitives in the vtkpython, and
then write them out as VTK files, without visualizing them. How can I
accomplish this? I'm not problem I'm having is how to use
vtkPolyDataWriter in python.
Thanks,
- Olumide
####################### Example #######################
#!/usr/bin/env python
import vtk
import time
cone = vtk.vtkConeSource()
cone.SetHeight( 3.0 )
cone.SetRadius( 1.0 )
cone.SetResolution( 10 )
# wite file out using vtkPolyDataWriter
More information about the vtkusers
mailing list