[vtkusers] Reading in legacy data

Chris Scharver scharver at evl.uic.edu
Fri Feb 14 11:20:34 EST 2003


At 10:56 AM -0500 02/14/2003, Arun Nagarajan wrote:
>Does anyone have any suggestions etc. on what to pursue?

You could use vtkProgrammableSource to manually parse your data yourself and place it into the appropriate VTK data structure. The vtkDataReader classes are intended for reading specific file format. If your legacy format is not one of those currently supported by VTK, you'll have to just parse through the data yourself. As you parse through the data, you can then insert it into VTK's data structures.

If you know that you're reading 3D points, you can read the values and place the points in a vtkUnstructuredGrid. Other data such as scalars or colors can be associated with this data.

Chris
--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002   FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>



More information about the vtkusers mailing list