you can get the center of mass and do an inverse transformation to take
the object to 0,0,0

center of mass can be calculated from averaging out the x,y,z
so add all x's and divide by number of x's to get center of mass x etc

~Shlomo

On Tue, 3 Apr 2001, Daniel Moscoso wrote:

> 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