[Paraview] Exporting data in a human readable manner
Ricardo Reis
rreis at aero.ist.utl.pt
Tue May 3 12:23:37 EDT 2005
If you execute this python script it will transform your vtk binary to vtk
ASCII
#!/usr/bin/python
import string
import vtk
filename="filenamehere" #no .vtk ending
r = vtk.vtkDataSetReader()
r.SetFileName(filename+'vtk')
###write stuff
w = vtk.vtkDataSetWriter()
w.SetInput( r.GetOutput() )
w.SetFileName(filename+'ascii.vtk')
w.Write()
greets,
Ricardo Reis
"Non Serviam"
n.p.: http://radio.ist.utl.pt
n.r.:
<- Send with Pine Linux/Unix/Win/Mac OS->
More information about the ParaView
mailing list