[vtkusers] Convert Data to Understandable VTK Data Format

David Doria daviddoria at gmail.com
Wed Feb 8 18:44:30 EST 2012


> where x and y are rectangular coordinates

These should be added to a vtkPoints object.

, u and v are velocity components,

These should be added to a vtkFloatArray with NumberOfComponents = 2.

> i is indexed for x, j is indexed for y

This seems like an incidental.

> , and k is indexed for time

I'm not sure how to handle the time component. I believe the Exodus
format is how VTK likes to handle time series data - there is a shell
of an example here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/IO/ExodusIIWriter -
maybe someone will fill it in for you if they know how to use it.

David



More information about the vtkusers mailing list