Just a guess, but I would say a mouse click has no Z coordinate.  When you click on an image plate,
you are clicking on a flat 2D abstraction, not the object it contains.
 
-- John
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Gianni Riccio
Sent: Monday, November 26, 2001 3:31 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Canvas3D.getPixelLocationInImagePlate(...)

Hi all,
I have this piece of code to obtain the 3d
coordinates of the pixels in the image plate.
How can I obtain the same coordinates in my local system of three axis(x,y,z)?
How can I obtain the z-coordinate?
.......

x =((MouseEvent)event[i]).getX();

y =((MouseEvent)event[i]).getY();

Point3d eyePos = new Point3d();

canvas3D.getCenterEyeInImagePlate(eyePos);

Point3d mousePos = new Point3d();

canvas3D.getPixelLocationInImagePlate(x, y, mousePos);

.....

Thanks for help.
Gianni 

Reply via email to