[vtkusers] how to change the color of single picked cell

Nigel Nunn nNunn at ausport.gov.au
Wed Mar 16 05:05:28 EST 2005


Hi Tracy,

> My application is to display a 3D model with a group of PolyData
> cells. This model is represented by an actor. "vtkCellPicker" is
> used to select a specific cell. My question is how to change the
> colour of the single selected cell without any influence to the
> rest when the cursor is over this cell.

How about a 1-cell "selection" actor -- use the vertices of the
selected cell to define one cell, add a mapper/actor pipeline,
and set the appropriate color.  Then change or hide this actor
as the mouse moves.

Nigel


_____________________________________________________________________________________
This message is intended for the addressee named and may contain confidential and
privileged information. If you are not the intended recipient please note that
any form of distribution, copying or use of this communication or the information
in it is strictly prohibited and may be unlawful. If you receive this message in error,
please delete it and notify the sender. 
Keep up to date with what's happening in Australian sport. Visit www.ausport.gov.au
_____________________________________________________________________________________



More information about the vtkusers mailing list