<br>HI..<br><br>Thanks to all for your replies.. <br><br>To David Gobbi,<br>I want it just to highlight the cell so that next time again when user clicks some other cell,<br>then, the current cell, which is highlighted ( or which is black), should become white and <br>the newly selected cell, must be highlighted.<br><br>I also thought the same thing, but, later on i thought, that we need to use two actors. and <br>i guess, it can be done with one.. So just to find whether there is any possibility that this task<br>can be achieved by using single actor or not, i posted my question. Nevertheless, i'll tr to implement this first.<br><br>Thanks.<br><blockquote><br>---------- Original message ----------<br>From:Karthik Krishnan&lt; karthik.krishnan@kitware.com &gt;<br>Date: 27 Jan 10 22:07:21<br>Subject:  Re: [vtkusers] Picking and Annotation<br>To: Rakesh Patil <rakeshthp@in.com><br><br>And be prepared to handle z fighting issues.. using one of the<br>standard ways.. also see<br
 >vtkMapper::ResolveCoinicidentTopologyToPolygonOffset<br><br>On Wed, Jan 27, 2010 at 10:27 AM, David Gobbi <david.gobbi@gmail.com> wrote:<br>&gt; Hi Rakesh,<br>&gt;<br>&gt; The method that you use to annotate the cell will depend on whether<br>&gt; you want to permanently color the cell, or whether you just want to<br>&gt; highlight it.<br>&gt;<br>&gt; If you just want to highlight the cell, then the best thing to do is<br>&gt; make a new polydata, set its color to black, and then add the picked<br>&gt; cell to the new polydata.  Then add this new polydata to an actor and<br>&gt; add the new actor to the renderer so that it will render the black<br>&gt; cell over the original cell.  Use the vtkGenericCell as an<br>&gt; intermediate for getting the cell from the original polydata and<br>&gt; adding it to the new polydata.<br>&gt;<br>&gt; By doing things this way, you would leave the original polydata<br>&gt; unchanged, and create a new "annotation" actor that has your picked<
 br>&gt; cells.  I'm not sure if this is would meet your needs, but it would be<br>&gt; a straightforward way of visualizing the cell pick.<br>&gt;<br>&gt;   David<br>&gt;<br>&gt;<br>&gt; On Wed, Jan 27, 2010 at 7:01 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt;&gt; Hello,<br>&gt;&gt;<br>&gt;&gt; I want to implement picking. With the help of an example, annotatePick.tcl,<br>&gt;&gt; i'm able pick a cell, but annotation is not possible..<br>&gt;&gt;<br>&gt;&gt; I am displaying a triangular mesh. And when the user clicks on any of the<br>&gt;&gt; cell of the mesh, i need that particular cell to be filled with black. Only<br>&gt;&gt; that particular cell has to be annotated as a filled black color.<br>&gt;&gt;<br>&gt;&gt; Is it possible..?? After picking i'm getting cellid, of the cell which is<br>&gt;&gt; selected. How can i do the annotation..??<br>&gt;&gt;<br>&gt;&gt; Thanks in advance<br>&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Dear vtkusers ! Ge
 t Yourself a cool, short @in.com Email ID now!<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt;<br>&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt; <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt; _______________________________________________<br>&gt; Powered by <a target=\"_blank\" hre
 f="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at: <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br></rakeshthp@in.com></david.gobbi@gmail.com></rakeshthp@in.com></blockquote>