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