I use a simplistic approach...
 
I take the maximum value of the maxX and maxY extents of the Shape3D and then multiply that by 2 and set the Z to the negative of this value.
 

Cheers,

Allistair Crossley
Web/New Media Consultant
Logica UK Ltd
Tel: 02074 463267
Mob: 07884 056274

-----Original Message-----
From: K.R.Karthikeyan [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2001 13:59
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Fit to the Panel

Hai ,
 
 
I want a function which should make my Shape3D fully visible on the Canvas3D.
 
In my Application i can  Zoomin or Zoomout my Graphics by Clicking the Corresponding buttons.
Like this i want a function to make a full view of my Shape3D. ( the shape will be of any width and height )
 
 
Any Suggestions will be helpful to me .
 
 
Karthiks

Reply via email to