Hi Nikolai,

Thanks for the suggestion. It works this way, however, i wanted to know
whether the change in functionality is due to a bug fix in Java3d 1.3 or
due to some other reason?

Thanks and regards,
Raghav

Nikolai V. Chr. wrote:

Raghavendra R wrote:

Hi,

I have a BranchGroup in my application to which i have added Behavior
instances as children. Now, if i call setBoundsAutoCompute passing
"false" and try to get the Bounds of this BranchGroup by calling
branchGroup.getBounds(), i am getting a null object. This was returning
a valid Bounds object in Java3D 1.2 whereas now in Java3D 1.3, it is
returning "null".

Please let me know what is the workaround for this.


You can do something like this:

bounds = branchGroup.getBounds();
branchGroup.setBoundsAutoCompute(false);
branchGroup.setBounds(bounds);

After this you will always get the last bounds that was autocomputed.

But you have to consider what you are expecting to get when calling
getBounds with autocompute off, normally that means you want to supply
the bounds yourself. Since you havent you get null, which I believe is
correct behaviour.

Regards
Nikolai

===========================================================================

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