I compute the minimum x y and z and the maximum x y and z for my object and
then add an additional z value of about -150 to center my object on the
canvas.

^^^^^^^^^^^^^^^^^^^^^
Allistair D Crossley
IT Consultant (Logica)
01277 252088
[EMAIL PROTECTED]
^^^^^^^^^^^^^^^^^^^^^


#-----Original Message-----
#From: Rajamiyer Ravichandran [mailto:[EMAIL PROTECTED]]
#Sent: 25 July 2000 21:17
#To: [EMAIL PROTECTED]
#Subject: [JAVA3D] How to determine correct scale factor
#
#
#Hi All,
#I have difficulty in setting the correct scale factor
#for the top level TransformGroup of my scene graph. My
#3D models have different sizes and shapes. Knowing the
#current size of the model, how can determine the scale
#factor so that, the model will just fit in the
#canvas3d. I believe there must be some relationship
#between the model extents and the screen size so that
#the scale factor can be computed. I am using
#PARALLEL_PROJECTION.
#
#
#
#__________________________________________________
#Do You Yahoo!?
#Get Yahoo! Mail - Free email you can access from anywhere!
#http://mail.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".
#

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