<div>Hey Gregory,</div>
<div> </div>
<div>I don&#39;t have the code with me right now, but the basic implementation was using the vtkPointPicker class.</div>
<div> </div>
<div>It went something like this:</div>
<div> </div>
<div> vtkPointPicker *picker = vtkPointPicker::New();<br> picker-&gt;Pick(x, y, 0, this-&gt;m_flowInternal-&gt;renderer);</div>
<div> </div>
<div> id = picker-&gt;GetPointId();<br> *actor = picker-&gt;GetActor();</div>
<div> </div>
<div> </div>
<div>id was the index of the point, and actor was the actor associated with the structured grid that the point came from. I forgot how I got the x,y co-ordinates of a mouse click; I believe I subclassed something?<br><br>
</div>
<div class="gmail_quote">On Thu, Aug 27, 2009 at 10:35 AM, Grzegorz Pytel <span dir="ltr">&lt;<a href="mailto:bioinfguy@gmail.com" target="_blank">bioinfguy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi, <br>
<div>I&#39;ve read your post on 3 Aug 2009 and would like to ask you for sending me your picking code you have done.  How do you get an id of picked cell using vtkPicker? how it is possible to get the index of the point picked of some vtkStructuredGrid?? How do you get a cell?<br>
Thanks in advance,<br></div>
<div>Regards,</div>
<div>Gregory</div></blockquote></div><br>