Wayne,
        If I understand your problem correctly try this:

                Shape3D shape; // your shape for example
                LineArray linearray = (LineArray) shape.getGeometry();
                double[] hold_coord = new double[3];
                linearray.getCoordinate(0, hold_coord);  // the double array
contains the vertice0
                .
                .
                .



Shaun

----- Original Message -----
From: "Wayne Glanfield" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 3:20 AM
Subject: [JAVA3D] Shape3D and getCoordinates


> I'm not having much sucess accessing the vertex coordinates defined in a
> LineArray from a Shape3D object which is passed into a class. Any help
much
> appreciated.
>
> Have tried something along the lines of the following;
>
> LineArray.getCoordinates(int, float[]);
>
> etc....which is fine getting the coords from a LineArray, but how from a
> higher level object such as a Shape3D container.
>
> oShape3D.getGeometry(index);
> .
> .
> .
> .
> getCoordinates(int, float[]);
>
> Thanks
>
> Wayne
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
===========================================================================
> 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