[vtkusers] how to convert from viewport x, y mouse coordinates to data points in my polydata dataset?
David E DeMarle
dave.demarle at kitware.com
Tue Mar 3 11:48:27 EST 2009
Use vtkWorldPointPicker.
Given the X, Y it asks the RenderWindow what the Z is. Given all three
it then asks the Renderer to convert that to the world coordinate.
On Tue, Mar 3, 2009 at 11:37 AM, Justin Giles <jtgiles at gmail.com> wrote:
> Anyone have any insight on how to convert x,y mouse coordinates to find the
> point being hovered over or picked in a polydata dataset?
>
> Thanks,
>
> Justin
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
More information about the vtkusers
mailing list