----- Original Message -----
From: Dirk L. van
Krimpen
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
=========================================================================== 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". |