I think it�s a simple Problem
You make a simple Rotate of your Object.
And without translation it normaly rotates in the
origin.
coords[0] = new Point3f(0.f,0.f,0.f);
coords[1] = new Point3f(0.f,1.f,0.f);
coords[2] = new Point3f(0.f,1.f,1.f);
coords[3] = new Point3f(0.f,0.f,1.f);
So it rotate around the first coordinate.
If you want to rotate about the coordinate 0,0.5,0.5
you must translate it about 0,-0.5,-0.5
Hope i can help
Sebastian
--- Jai Kumblekere <[EMAIL PROTECTED]> schrieb: >
HI Members
>
> I have problems with rotation of object about its
> own
> center rather than the origin. I took an example
> from
> this board. It works with real fine with
> primitives.
> But if I create two lines with "Test" class, it no
> more rotates about it's center. Can Someone look at
> these codes and help me out ? I am really
> desperate!
>
> Thanks in advance!
>
> Jay
>
>
>
>
> =====
> Visit :NavaSun Networks, LLC.
> http://www.navasun.com
> ATTACHMENT part 2 application/octet-stream
name=Triad.java
> ATTACHMENT part 3 application/octet-stream
name=TransDialog.java
> ATTACHMENT part 4 application/octet-stream
name=SimpleGeometry.java
__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
===========================================================================
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".