Victor,
It sounds like you need J3dTree! ;-) Blatant plug aside, J3dTree is a
OPENSOURCE Java 3D scenegraph viewer that will display all the Bounds
information for all of the nodes in your scenegraph.
Download it from http://www.tornadolabs.com (go to the News section).
There is an example of HelloUniverse that has been modified (a few lines of
code) to use the viewer so I hope you won't have any problems.
Best of luck,
Daniel Selman
[EMAIL PROTECTED]
http://www.tornadolabs.com
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Victor Raymond
Sent: 15 October 1999 20:56
To: [EMAIL PROTECTED]
Subject: Getting the bounding extent of a subgraph
I have a complicated subgraph and I do not know the structure or
the contents of the subgraph. I need to get a bounding extent of
all the elements in the subgraph. How do I do this? Any and all
help much appreciated.
- Victor
Note : Tried using Node.getBounds() but it doesn't seem to work.
For example
Cone cone = new Cone( 5.0, 10.0 ) ;
cone.setCapability( Node.ALLOW_BOUNDS_READ ) ;
cone.setCapability( Node.ALLOW_BOUNDS_WRITE ) ;
cone.setCapability( Node.ALLOW_AUTO_COMPUTE_BOUNDS_WRITE ) ;
cone.setBoundsAutoCompute( true ) ;
Bounds b = cone.getBounds() ;
BoundingBox bbox( b ) ;
bbox ends up being a box from (-1,-1,-1) to (1,1,1).
Not what I expected.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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".