[vtkusers] Picking points from (multiple) vtkStructuredGrids using vtkPointPicker
da xu
remywendy at gmail.com
Mon Aug 3 20:19:52 EDT 2009
Upon further inspection,
vtkPointpicker->GetDataSet() method returns a vtkPolyData , most likely from
the vtkMapper and not the original input dataset.
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...
On Mon, Aug 3, 2009 at 12:19 PM, da xu <remywendy at gmail.com> wrote:
> Hey all,
> 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?
>
> Thanks!
> Will
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090803/58dfe344/attachment.htm>
More information about the vtkusers
mailing list