[vtkusers] Setting colors to individual cell

Berk Geveci berklist at nycap.rr.com
Thu Apr 3 11:43:59 EST 2003


On Thu, 2003-04-03 at 11:21, Jonathan Bailleul wrote:
> Nanditha Thakur wrote:
> > 
> > Hello Users,
> >                I have a 3D object. Can I set different color to
> > some of the cells(or points) of this object? This is how my
> > requirement is going to be. Say my actor is blue in color.I will
> > pick some of the cells of the object by clicking on it. Now I want
> > to set, say red color, to these picked cells. Is it possible to do
> > so in VTK? Help!
> > 
> > Thanks
> > Nanditha
> > 

Create cell scalars of constant value. Color by these.
When a cell is picked, change the value for that cell. You
will have to create a custom lookup table probably.





More information about the vtkusers mailing list