[vtkusers] Setting colors to individual cell
R K Shyamprakash
ramakrishna.prakash at quest-global.com
Sun Apr 20 05:09:37 EDT 2003
Following a code snippet which should solve your problem. I am
assuming your polydata has some scalar value. The code is in JAVA.
double color = 10.0; // different scalar value
or); //cell Id is picked cell's id
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Nanditha Thakur
Sent: Friday, April 18, 2003 6:21 PM
To: Jonathan Bailleul
Subject: Re: Re: [vtkusers] Setting colors to individual cell
I still have not succeeded in my method. I am able
to change the scalar value, but the result is far from satisfying.
Can you please elborate on your approach. It will be of great
On Thu, 03 Apr 2003 Jonathan Bailleul wrote :
>Nanditha Thakur wrote:
> > Hello Users,
> > I have a 3D object. Can I set different color
> > 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
> > pick some of the cells of the object by clicking on it. Now I
> > to set, say red color, to these picked cells. Is it possible
> > so in VTK? Help!
> > Thanks
> > Nanditha
>I am just dealing with a similar problem right now! My choice
>in glyphing the points of the selected cell instead, since I just
>figure out how to proceed otherwise.
>I still have problems to solve, but it seems fairly usable. Let
>if you need to know more about this, or if you managed to do what
>Jonathan BAILLEUL, Doctorant
>GREYC Image - Université de Caen
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>Follow this link to subscribe/unsubscribe:
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
Follow this link to subscribe/unsubscribe:
More information about the vtkusers