----- Original Message -----
Sent: Sunday, September 21, 2003 11:26 AM
Subject: Re: [JAVA3D] BoundingBox...Box! a great problem!

 
Andrea,
 
Would itn't be possible to do the following?
 
BoundingBox box=new (BoundingBox)yourObject.getBounds();
Point3d pll=new Point3d();  //point lower left
Point3d pur=new Point3d();//point upper right
box.getLower(pll);
box.getUpper(pur);
 
Now you have the 2 most extreme points of the box. You could
calculate the the others by, for instance:
 
Point3d plr=new Point3d(); //point lower right
plr.x= - pll.x;
etc.
 
From those points, you could create a line-array or (nicer)
a transparent triangle array.
 
Mind, I didn't try the above myself. So, I am not sure it works
immediately. If so, let me know.
 
Dirk
 
----- Original Message -----
Sent: Saturday, September 20, 2003 3:31 PM
Subject: [JAVA3D] BoundingBox...Box! a great problem!

Hi j3dWorld!
How can I obtain a Box from a boundingBox! It's very important because I can see the bounds that encover my object and verify if it's correct!
thanks, Andrea
=========================================================================== 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