Hi,

That does not seem to work, it gives all sorts of spurious/weird Z
coords. Basically all I want is a constant Z value if I click 
Anywhere on the face of a shape no matter if I have rotated the shape
around. I want it to be relative to the centre of the shape and not the
world.

Thanks
Paul

Paul Watson (Senior Design Consultant)
www.rcid.ncl.ac.uk
Resource Centre for Innovation in Engineering Design
Bruce Building
University of Newcastle Upon Tyne
Newcastle Upon Tyne
NE1 7RU, UK Tel: 0191 222 5306 

-----Original Message-----
From: trz [mailto:[EMAIL PROTECTED] 
Sent: 11 August 2003 18:53
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Picking inaccuracy


P Watson wrote:
> Hi,
>
> I was hoping someone may be able to help.
> I have a primitive box vrml file which I have loaded into my Java3d 
> scene and I would like to click on it to get the x,y,z coords. The x 
> and y coords provided seem fine but I don't understand why the Z 
> coordinate seems to vary between -1 & 1 depending on where I click the

> shapes front face. Surely it should be 1 all over !.

Hi,
the method getPointCoordinates will give the point relative to the
origin of the system of the cube (each TransformGroup "define" a
coordinate system below it). To get the absolute coordinates you have to
use getPointCoordinatesVW.

Bye


Lorenzo

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