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
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
|