<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< karthik.krishnan@kitware.com ><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>> Hi Rakesh,<br>><br>> The method that you use to annotate the cell will depend on whether<br>> you want to permanently color the cell, or whether you just want to<br>> highlight it.<br>><br>> If you just want to highlight the cell, then the best thing to do is<br>> make a new polydata, set its color to black, and then add the picked<br>> cell to the new polydata. Then add this new polydata to an actor and<br>> add the new actor to the renderer so that it will render the black<br>> cell over the original cell. Use the vtkGenericCell as an<br>> intermediate for getting the cell from the original polydata and<br>> adding it to the new polydata.<br>><br>> By doing things this way, you would leave the original polydata<br>> unchanged, and create a new "annotation" actor that has your picked<
br>> cells. I'm not sure if this is would meet your needs, but it would be<br>> a straightforward way of visualizing the cell pick.<br>><br>> David<br>><br>><br>> On Wed, Jan 27, 2010 at 7:01 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br>>> Hello,<br>>><br>>> I want to implement picking. With the help of an example, annotatePick.tcl,<br>>> i'm able pick a cell, but annotation is not possible..<br>>><br>>> I am displaying a triangular mesh. And when the user clicks on any of the<br>>> cell of the mesh, i need that particular cell to be filled with black. Only<br>>> that particular cell has to be annotated as a filled black color.<br>>><br>>> Is it possible..?? After picking i'm getting cellid, of the cell which is<br>>> selected. How can i do the annotation..??<br>>><br>>> Thanks in advance<br>>><br>>> Regards<br>>><br>>><br>>> Dear vtkusers ! Ge
t Yourself a cool, short @in.com Email ID now!<br>>> _______________________________________________<br>>> Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>>><br>>> Visit other Kitware open-source projects at<br>>> <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>>><br>>> Please keep messages on-topic and check the VTK FAQ at:<br>>> <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>><br>>> Follow this link to subscribe/unsubscribe:<br>>> <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>>><br>>><br>> _______________________________________________<br>> Powered by <a target=\"_blank\" hre
f="http://www.kitware.com" target="_blank">www.kitware.com</a><br>><br>> 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>><br>> 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>><br>> Follow this link to subscribe/unsubscribe:<br>> <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br></rakeshthp@in.com></david.gobbi@gmail.com></rakeshthp@in.com></blockquote>