RGB color mapping

Hello friends,

I have exported nodal, element data in vtk file to visualize in paraview. I have 6656 elements and each element has some rgb data {{0,1,0},{0.6,0.9,1}…..}*255 to make it consistent with paraview. Now how can i map this color data exactly to each element in paraview?? Looking forward for your help

Here is samaple code snippet:

CELLS 6656 59904
8 0 16 664 147 6784 6785 6786 6787
8 16 17 665 664 6788 6789 6790 6785
8 17 18 666 665 6791 6792 6793 6789
8 18 19 667 666 6794 6795 6796 6792
8 19 20 668 667 6797 6798 6799 6795
8 20 21 669 668 6800 6801 6802 6798
8 21 22 670 669 6803 6804 6805 6801
8 22 23 671 670 6806 6807 6808 6804
8 23 24 672 671 6809 6810 6811 6807…….

CELL_DATA 6656
COLOR_SCALARS ElementColors 3
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0
0 255 0

In the Properties panel, select “ElementColors” in the Coloring menu and then uncheck the property Map Scalars. This tells ParaView to use the RGB values you have provided in the “ElementColors” array.

Dear Mr.Cory,

Thank you for your response. Yes, it is working now.

Regards

Saketh