This is the proper way for a Box to be constructed. The dimensions get
doubled so if you want 70 X 130 X 3.0 then use Box(35, 65, 1.5f, tTAp)).
At 06:52 AM 09/21/2000 -0700, you wrote:
>Hi Folks,
>
>I have noticed some interesting behavior when using
>the Box class to create geometry in my scene graph.
>Given the following code:
>
>Transform3D tableTop = new Transform3D();
>TransformGroup tableTopTrans = new
>TransformGroup(tableTop);
>tableTop.set(new Vector3f(0.0f, 0.0f, 0.0f));
>tableTopTrans.setTransform(beltTable);
>tableTopTrans.addChild(new Box(70, 130, 3.0f, tTAp));
>tableTrans.addChild(tableTopTrans);
>
>I expect to get a 70 X 130 X 3 piece of geometry
>positioned at the (0,0,0) vector. Futhermore, I
>expect the side edges to be 35 (and -35) from the
>center, the top and bottom edges to be 65 (and -65)
>from the center and the front and back edges to be 1.5
>(and -1.5) from the center.
>
>Instead, I get a 140 X 260 X 6 piece of geometry with
>the edges being 70, 130, and 3 away from the center...
>
>Is this a bug in the Box class or am I missing
>something here???
>
>Thanks,
>Mark
>
>__________________________________________________
>Do You Yahoo!?
>Send instant messages & get email alerts with Yahoo! Messenger.
>http://im.yahoo.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".
***********************************************************************
Eric Reiss - http://www.sigda.acm.org/Eric/
Email: [EMAIL PROTECTED]
SIGDA Internet Server Manager - http://www.sigda.acm.org/
Assistant Systems Manager - School of Engineering
University of Pittsburgh
***********************************************************************
===========================================================================
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".