[vtkusers] Setting colors to individual cell

Jonathan Bailleul Jonathan.Bailleul at greyc.ismra.fr
Fri Apr 4 04:15:10 EST 2003


Berk Geveci wrote:
> 
> 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.


Err, how can we set a color attribute to a cell?
I looked in the documentation but saw nothing to attach such properties.

Thank you in advance.

-- 
-----------------------------------
Jonathan BAILLEUL, Doctorant
GREYC Image - Université de Caen 
http://www.greyc.ismra.fr/~bailleul



More information about the vtkusers mailing list