If you just set the coordinates to 0,0,0 with a transform3D and then
TransformGroup.setTransform(Transform3D); this shut do the trick


----- Original Message -----
From: "Daniel Moscoso" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: dinsdag 3 april 2001 14:40
Subject: [JAVA3D] Centering a 3DS model in the Canvas3D


Hi all !!

I'm working with OBJ and 3DS files. When I load 3ds files, they don't appear
at the center of the Canvas3D like the OBJ ones (I don't know why). I want
to center them and I think I have to set TransformGroup's with translation
to set them in the center.
How can I get the position coordinates from the loaded models (or from any
Shape3D)?

Thanks in advanced !

Dani


--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

===========================================================================
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