[vtkusers] color glyphs by vector

Anders Vestbo anders at fmri.no
Thu Apr 21 07:26:41 EDT 2005


dear vtkusers,

i am using the vtkTensorGlyph class to display some tensors as 
ellipsoids in a tensor field. what i would like to do is to assign 
colors to each ellipsoid based on the direction of a vector, i.e. set 
the red, green and blue components of the color value to the x, y, and z 
components of the vector. can anyone provide me with an hint (example 
code would be highly appreciated!) on how to do this?

Anders Vestbo



More information about the vtkusers mailing list