Mixing 2D and 3D

Pavel Safrata pavel.safrata at oracle.com
Mon Aug 5 03:44:12 PDT 2013

On 1.8.2013 22:33, Richard Bair wrote:
>> How does that fit in with the 2D-ish picking events we deliver now?  If a cylinder is picked, how do we describe which part of the cylinder was picked?
> Pavel or Chien will have to pipe in on this part of the question, I don't know.

Similar to 2D, the delivered event has coordinates in the cylinder's 
local coordinate space, so getX(), getY(), getZ() tell you the 
intersection point of the pick ray cast to the scene by cursor position 
and the cylinder. Moreover, the events have getPickResult() from which 
you can obtain also distance from camera, picked face (not used for 
cylinder but identifies picked triangle for a mesh) and texture coordinates.


More information about the openjfx-dev mailing list