[vtkusers] LOOKUP_TABLE: Please, please, please help! Going Nuts!!!

Andrew Wilford andrew at artwork.com
Mon Mar 15 13:49:16 EST 2004


Hi,

When I view this VTK file, I expect to see a green cube, but I do not!

# vtk DataFile Version 3.0
test.vtk
ASCII
DATASET POLYDATA
POINTS 8 float
0 0 0
0 0 1
1 0 0
1 0 1
1 1 0
1 1 1
0 1 0
0 1 1
POLYGONS 6 30
4 0 2 4 6
4 1 3 5 7
4 0 2 3 1
4 2 4 5 3
4 4 6 7 5
4 6 0 1 7
CELL_DATA 6
POINT_DATA 8
SCALARS scalars int 1
LOOKUP_TABLE colors
0 0 0 0 0 0 0 0
LOOKUP_TABLE colors 1
0 1 0

Do I need some special code other than just reading the file - I thought
this was automatic!

Regards,
Andrew Wilford




More information about the vtkusers mailing list