You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Proposed 3D Picking API:

Add Method:

MouseEvent Class
   PickResult getPickResult()

getPickResult() will return additional information about the pick if the picked Node is a Shape3D node and the picked Node's pickOnBounds is false. Otherwise it returns null.

Add Class:

/**
 * A container object that contains the result of a pick event
 */
PickResult

    /* Return the intersected Node */
     Node getIntersectedNode()

     /* Return the intersected face of the picked Node*/
     int getIntersectedFace()

     /* Return the intersected point in local coordinate of the
        picked Node */
    Point3D getIntersectedPoint()

     /* Return the intersected texture coordinates of the
        picked Node */
     Point2D getIntersectedTexCoord()

  • No labels