I am creating a visualization of 3D data within a library. To avoid an additional dependency, I am manually writing a VTK file. In the following file, I have defined 16 custom colors. It should display a white triangle and three green edges. However, Paraview shows the elements in purple. Is the file incorrect, or does Paraview need different settings to use the custom lookup table? (I’m new to Vtk and Paraview)
# vtk DataFile Version 2.0
[tri.vtk]
ASCII
DATASET POLYDATA
POINTS 3 double
57.5705 20.2168 -5.50896
58.3134 19.2945 -5.50003
58.8049 20.5207 -5.26131
LINES 3 9
2 0 1
2 1 2
2 2 0
POLYGONS 1 4
3 0 1 2
CELL_DATA 4
SCALARS scalars float 1
LOOKUP_TABLE CellColors
1 1 1 7
LOOKUP_TABLE CellColors 16
1 0 0 1
0 1 0 1
0 0 1 1
1 1 0 1
0 1 1 1
1 0 1 1
0 0 0 1
1 1 1 1
0.5 0.5 0.5 1
1 0.65 0 1
1 0.75 0.800001 1
0.680001 0.850001 0.9 1
0 0.100001 0.803 1
0.560001 0.930001 0.560001 1
0.647001 0.165001 0.165001 1
0.627 0.125 0.941 1