[vtkusers] why use SetScalars instead of SetVectors for coloring

Yifei Li yifli82 at gmail.com
Sun Oct 16 13:37:10 EDT 2011


Hi,

I saw examples using SetScalars(colors) to color cells/points, where
'colors' is a vtkUnsignedCharArray with 3 components in each tuple.

A (r, g, b) color can be considered as a vector, I don't understand why vtk
treast color as scalar data instead of vector data. Why can't I use
SetVectors?

Can someone please  explain the reason?

Thanks

Yifei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111016/5c807882/attachment.htm>


More information about the vtkusers mailing list