[vtkusers] How to change the color of a single polyline ??

David Doria daviddoria+vtk at gmail.com
Tue Mar 23 11:02:45 EDT 2010


On Tue, Mar 23, 2010 at 5:58 AM, Rakesh Patil <rakeshthp at in.com> wrote:

> Hello users
>
> I have one unstructured grid which contains more than one poly-lines and
> poly-vertex. Now, on the other hand, I have only one actor corresponding to
> this grid. Now what I want to do is select a particular polyline. And change
> the color of this polyline. Initially all polylines are black in color. Once
> i change the color, it should be reflected back in the actor only for that
> particular polyline..
>
> I have only one actor.. And i guess, using this actor, if i change the
> color, using get property, it changes the color of all the the polylines.
> How do i change the colors of only one polyline..??
>
> Thanks
>
> Regards
> Rakesh Patil
>
>
I think you are supposed to make a new actor which contains the selected
line only, and set the color of that line.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100323/5f5fbd0b/attachment.htm>


More information about the vtkusers mailing list