Hi

the getBounds method of the Node class returns Bounds, which is an abstract
class
try an explicit cast before reading the information of the BoundingBox

e.g.:
System.out.println((BoundingBox)tg.getBounds());

hope this will do

bye

Alexander Wojnar

-----Ursprungliche Nachricht-----
Von: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]Im
Auftrag von ÀÌ¿µ¼®
Gesendet: Wednesday, August 30, 1995 10:45 AM
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] getBounds()


Hi everyone~
I'm wondering why method - getBounds() returns radius value -1

These are some of my codes

....
Transformgroup tg;
BoundingBox b = BoundingBox(new Point3d(-10, -10, -10), new Point3d(10, 10,
10));
tg.setBounds(b);
System.out.println(tg.getBounds());
...

Result is
Center=<0.0, 0.0, 0.0> Radius=-1.0

Can anybody tell me why?

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