[vtkusers] Writing n component per row

ycollette.nospam at free.fr ycollette.nospam at free.fr
Fri Apr 27 03:17:37 EDT 2012


Hello,

I use a vtkDataObjectWriter to write a data set containt vtkFieldData.
My files are then used by another application which uses a hand written vtk reader.

Vtk writes the file like this (with 9 components per row):

# vtk DataFile Version 3.0
vtk output
ASCII
FIELD FieldData 14
NODALFLUX 3 525 float
0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 

But I need to have the file written like this (with 3 components per row):

# vtk DataFile Version 3.0
vtk output
ASCII
FIELD FieldData 14
NODALFLUX 3 525 float
0 0 0 
0 0 0 
0 0 0 
0 0 0 


Is there any method in vtkFieldData or in vtkDataObjectWriter to specify this ?
I still haven't found any clue for this.

Best regards,

YC



More information about the vtkusers mailing list