[vtkusers] Mouse position in world coordinates
alexmalvtk at gmail.com
Fri Sep 7 18:52:30 EDT 2012
Mouse is positioned in 2D plan.
You certainly can get it coordinates.
Counting you camera position and your projection type,
you can identify ray (line) in 3D space which is representing all
possible 3D positions.(infinite number of points)
Without other conditions specified that is it.
To obtain specific point you need additional surface(object) to
intersect this line with.
If for example all objects in your model were located in 2d plan, you
could intersect line with it (if it has intersection).
On Fri, Sep 7, 2012 at 6:00 AM, Doug Hoppes <dhoppes at mbfbioscience.com> wrote:
> Is there any way to get the mouse position in world coordinates, without
> having the mouse interact with a surface? For example, I have an object in
> 3D and, as the mouse moves, I want the object to be always under my mouse.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers