Upon further inspection,<div><br></div><div>vtkPointpicker->GetDataSet() method returns a vtkPolyData , most likely from the vtkMapper and not the original input dataset. </div><div><br></div><div>vtkPointPicker->GetActor() however, returns a pointer to some nonexistent actors!! While debugging my program, I wrote down the pointer addresses of all the actors I added on to the renderer, and none of them were picked out by vtkPointPicker...<br>
<br><div class="gmail_quote">On Mon, Aug 3, 2009 at 12:19 PM, da xu <span dir="ltr"><<a href="mailto:remywendy@gmail.com" target="_blank">remywendy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all,<div><br></div><div>My question is regarding the vtkPointPicker class. I'm trying to use it to pick some points from my window (which consists of a few vtkStructuredGrids). It works fine, returning the Index of the point picked of some vtkStructuredGrid, but how can I also know which vtkStructuredGrid I picked from? I tried to use the vtkPointPicker->GetDataSet() method, but the return dataset was not ANY of the vtkStructuredGrids I had on my render window. Is there another class I can use?</div>
<div><br></div><div>Thanks!</div><div>Will</div>
</blockquote></div><br></div>