Hi Victor,

This is bug in 1.1.2.  To get the correct bounds in 1.1.2, you need to
make the subgraph live before getting the bounds.  This is fixed in
1.2 alpha1.

Doug Twilleager
Java 3D Team


> X-Originating-IP: [134.132.73.158]
> Mime-Version: 1.0
> Subject: [JAVA3D] Getting the bounding extent of a subgraph
> To: [EMAIL PROTECTED]
>
> 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".

Reply via email to