If I understand it correctly the get method assigns the point to the
parameter variable, which you then use from there.

Jannie
-----Original Message-----
From: Daniel Balaguer Yagan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 9:24 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] PickPoint


hi there,
        just one question on the class PickPoint. I want to pick a point
using PickCanvas. I have already set the shape location (by using
pickCanvas.setShapeLocation(mouseEvent).  and the mode
(PickCanvas.GEOMETRY).
         I want to get, a PickPoint, is this the way to do it?

        PickResult result = pickCanvas.pickClosest();
        if (result!=null) PickShape shape =  result.getPickShape();
        if (shape!=null && (shape instanceof PickPoint))
                PickPoint pickPoint = (PickPoint) shape;

        After getting the point, I want to get the location. I know that
class PickPoint has only 2 main methods (set() and get() ). But the get()
method does not return the location (it is a void method) and accepts a
Point3d object as parameter.
        How do you get the location of this pickpoint?

thanks,
daniel



===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to