[vtkusers] How to use ColorByArrayComponent?

chensq chenshaoqiang at buaa.edu.cn
Tue Jan 9 23:28:25 EST 2018


Hello vtkers.
I used to think that I can use vtkMapper’s ColorByArrayComponent to set a array component to transfer value to color just as the scalar data.
So, I added just one line of code : pMapper->ColorByArrayComponent("aArrayName", 0);
But there is nothing happened!
Now, I have to copy values in the array into scalar data.
Does anyone can tell me what I have done wrong?
Sincerely Chen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180110/f7cd151f/attachment.html>


More information about the vtkusers mailing list