forget CC

Von: Möller, Matthias
Gesendet: Donnerstag, 16. April 2015 15:16
An: Juliette Pera
Betreff: AW: [Openflipper] conversion from screen coordinates to mesh coordinates

Hi Juliette,
if you just want the position on your mesh which is on the scenegraph,
I would recommend to use the function "PluginFunctions::scenegraphPick(...)" (http://openflipper.org/Daily-Builds/Doc/Free/Developer/a03293.html#a0ae515c8553f9e7f671bd2627bbecf6a)

The last parameter "_hitPointPtr" gives you the hit point in world space.

Hopefully I could help.
Greets,
Matthias M.


Von: openflipper-bounces@lists.rwth-aachen.de [openflipper-bounces@lists.rwth-aachen.de]" im Auftrag von "Juliette Pera [juliette.pera@gmail.com]
Gesendet: Donnerstag, 16. April 2015 12:03
An: openflipper@lists.rwth-aachen.de
Betreff: [Openflipper] conversion from screen coordinates to mesh coordinates

Hi all,

I am trying to drag a vertex of a mesh from its position to a new one using the two events: mouse button press and mouse button release.

Do you know an easy way to convert the position of the mouse from the screen coordinate to my mesh coordinate?

Thank you in advance,
Juliette