Andrew,
Use the public x, y, z fields of the Point3f() object.

the code:
Point3f point = new Point3f( 0, 1, 0 );
System.out.println( point.y );

Should print l to the console.

If you need localToVWorld Transforms or other translations, the Transform3D
class can help you with that.



Hope this helps,

--
Chad Zalkin
3SI's Pro Viribus: http://www.3south.org


----- Original Message -----
From: "Andrew Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 12:29 PM
Subject: [JAVA3D] Getting coordinate values for terrain map.


> Hi there ..
> Is there a way of getting a single x,y or z value from a Point3f()
vertice?
>
> I'm trying to assign a range of colours to a range of heights in my
terrain map and the only way I can think of doing it is to read each y-value
from my coordinate array and assign a colour accordingly...
> ..any ideas?
>
> Thanks much appreciated
> Andrew
>
>
===========================================================================
> 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