<br>Is there anyway to convert unstructured grid to polydata..?? coz what i am using here is unstructured grid. And the output of any filter is polydata.<br><blockquote><br>---------- Original message ----------<br>From:Karthik Krishnan< karthik.krishnan@kitware.com ><br>Date: 27 Jan 10 22:42:37<br>Subject: Re: [vtkusers] Picking and Annotation<br>To: Rakesh Patil <rakeshthp@in.com><br><br>On Wed, Jan 27, 2010 at 12:00 PM, Rakesh Patil <rakeshthp@in.com> wrote:<br>><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<br>> clicks some other cell,<br>> then, the current cell, which is highlighted ( or which is black), should<br>> 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<br>> two actors. and<br>> i guess, it can be
done with one.. So just to find whether there is any<br>> possibility that this task<br>> can be achieved by using single actor or not,<br><br>Yes it can, by adding a dataarray containing scalars for cell data.<br>And then having the polydata colored by cell data. But this is a<br>terrible overkill to color just one cell. You should really use 2<br>actors.<br><br>> i posted my question.<br>> Nevertheless, i'll tr to implement this first.<br>><br>> Thanks.<br>><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<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 wrote:<br>>> Hi Rakesh,<br>>&g
t;<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>><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 wrote:<br>>>> Hello,<br>>>><br>>>> I want to implement picking. With the help of an example,<br>>>> 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.<br>>>> 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>>>> D
ear 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\" 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></rakeshthp@in.com></rakeshthp@in.com></blockquote>