[vtkusers] Writing n component per row
ycollette.nospam at free.fr
ycollette.nospam at free.fr
Fri Apr 27 04:40:42 EDT 2012
In fact, I think my question can be summed-up to:
How can I set the vtkDataSetAttributes::VECTORS to a given vtkFloatArray.
YC
----- Mail original -----
De: "ycollette nospam" <ycollette.nospam at free.fr>
À: vtkusers at vtk.org
Envoyé: Vendredi 27 Avril 2012 09:17:37
Objet: [vtkusers] Writing n component per row
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list