Hi...
here's the code for the quad.. somehow my e-mail doesnt attach properly..:(
import javax.media.j3d.*;
import javax.vecmath.*;
public class FrontQuad extends QuadArray {
public FrontQuad() {
super(4, GeometryArray.COORDINATES| GeometryArray.COLOR_3);
Point3d[] vertices = new Point3d[4];
Color3f colors[] = new Color3f[4];
for(int i=0; i<4; i++)
{
colors[i] = new Color3f(1.0f,0.83f,0.45f);
}
vertices[0] = new Point3d(50.0, 49.0, 75.0);
vertices[1] = new Point3d(-50.0, 49.0, 75.0);
vertices[2] = new Point3d(-50.0,-1.0, 75.0);
vertices[3] = new Point3d(50.0, -1.0, 75.0);
setCoordinates(0, vertices);
setColors(0, colors);
}
}
-----Original Message-----
From: Janet Song [SMTP:[EMAIL PROTECTED]]
Sent: Sunday, February 20, 2000 1:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] QuadArray
Hi
i attach a simple quad array class for u
to use it... instantiate this class...as
FloorQuad floor = new FloorQuad();
Shape3D shapeFloor = new Shape3D(floor);
root.addChild(shapeFloor);
Bye
-----Original Message-----
From: Ian Phillips [SMTP:[EMAIL PROTECTED]]
Sent: Saturday, February 19, 2000 1:22 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] QuadArray
Can someone give me some code that will show me how to make a QuadArray? I
want to see a working example if you can and can someone tell me how to use
a QuadArray properly?
Thanks a Million...
"A train station is where a train stops. A bus station is where a bus
stops. On my desk there is a work station..." -- Ian Phillips
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
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".
===========================================================================
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".