RES: [Paraview] output in asci format!

Renato N. Elias rnelias at nacad.ufrj.br
Sun Sep 18 21:40:53 EDT 2005


Hi Salman,

Try the following VTK-Python script:
 
---------------------------------------------------------------
import string
import vtk
 
r = vtk.vtkDataSetReader()
r.SetFileName("mybinaryfile.vtk")
r.Update()
 
###write stuff
w = vtk.vtkDataSetWriter()
w.SetInput( r.GetOutput() )
w.SetFileName('myasciifile.vtk')
w.Write()
---------------------------------------------------------------------

Cheers

Renato N. Elias
High Performance Computing Center
NACAD/COPPE/UFRJ
Rio de Janeiro/Brazil
http://www.nacad.ufrj.br/~rnelias


________________________________

De: paraview-bounces+rnelias=nacad.ufrj.br at paraview.org
[mailto:paraview-bounces+rnelias=nacad.ufrj.br at paraview.org] Em nome de
Salman Bhatti
Enviada em: domingo, 18 de setembro de 2005 15:03
Para: paraview at paraview.org
Assunto: [Paraview] output in asci format!


Hi All,
I passed my 3d model in .vtp format (ASCI) through generate normals filter
but i got output in Binary.Is there anyway to get output in ASCI format from
paraview.
Cheers all,
 
Salman




More information about the ParaView mailing list