[vtkusers] datareader/writer problem

Simon Faust simon.faust at post.rwth-aachen.de
Tue Mar 19 08:02:03 EST 2002


Hi
I'm trying to read a rectilineargrid vtk file in order to write it to
binary format. Problems result from the fact that there are a few
scalarfields in the original, but allways just one in the file writen by
the writer. How could i handle the different scalarfields.
When I write ascii files with my writer there is the same problem. here
some code fragments:

vtkRectilinearGridReader reader
     reader SetFileName "multipleScalarsFields.vtk"

vtkRectilinearGridWriter writer
     writer SetInput [reader GetOutput]
     writer SetFileName  "OutmultipleScalarsFields.vtk"
     writer SetFileType 1
     writer Write

the scalar fields are named scalar0, scalar1 etc., many thanks for any
hints
ciao Simon






More information about the vtkusers mailing list