[vtkusers] newbie VTK file format for vector data

deusexcomputer at gmail.com deusexcomputer at gmail.com
Mon Jan 22 11:34:21 EST 2007


I have trying to write out a vtk file with a custom cpp function
however I am unsure of how to format a file for vector data.  I have
reviewed the pdf documentation that is available here at vtk.org but
when I attempt to render the file I have created I receive the
following:

Generic Warning: In \enthon\src\Vtk-5.0\Io\vtkDataReader.cxx, line 844
Error reading ascii data!

Could someone review this header and let me know if I am missing something?

# vtk DataFile Version 2.0
Really cool data
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 20 20 20
ORIGIN 0 0 0
SPACING 1 1 1
POINT_DATA 8000
VECTORS vector0 float
-1.000000
0.000000
.
.
.
ect.

POINT_DATA 8000
VECTORS vector1 float
1.000000
1.000000
.
.
.
ect.

Regards,
Tony



More information about the vtkusers mailing list