[vtkusers] Color Mapping using scalar cell attribute data

John Platt jcplatt at lineone.net
Thu Dec 18 17:51:05 EST 2003


Hi vtkUsers,

 

I am trying to color map using different components of scalar cell
attribute data. I cannot find a way of changing 'ArrayComponent' in
vtkMapper.cxx to another value other than zero (except in the
debugger!).

 

I have tried vtkMapper->ColorByArrayComponent( "Element Attribs", 1 )
but by the time vtkMapper->MapScalars() is called, the component has
been reset to 0 again.

 

Any suggestions?

 

John Platt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031218/4c96d49d/attachment.htm>


More information about the vtkusers mailing list