[vtkusers] vtkPropPicker problem

David Doria daviddoria at gmail.com
Thu Sep 8 19:22:54 EDT 2011


On Thu, Sep 8, 2011 at 6:51 PM, Wayne Christopher <wayne at 4raccoons.com> wrote:
> I'm using vtkPropPicker to render polydata with lines.  PickProp is
> returning success and GetPickPosition is giving me a position somewhere on
> the ray defined by my mouse position, but it's way outside of the bounding
> box of the actor.  Is this supposed to work?  I see the problem on Linux
> both with mesa and native OpenGL.
>
> Am I correct in assuming that vtkPropPicker is the only way to do what I
> want (i.e. get a world position corresponding to some pixel that's being
> rendered on the screen, whether it's a cell, point, or line)?
>
>    Wayne

Have you seen this?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/Picking

David



More information about the vtkusers mailing list