Joerg, try to turn bounds auto-computing off
(sphere.setBoundsAutoCompute(false) method) and see if anything
changes (it really should).
vladimir
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
JB> Excuse my impertinence on the bounds topic.
JB> Could somebody from the Java3D-Team or anybody
JB> else explain the miracle of bounds objects.
JB> How does Java3D compute bounds ?
JB> Why are setBounds() Operations ignored?
JB> The following code snippet reveals strange results
JB> (at least for my) in a live scenegraph.
JB> Any help would be appreciated!
JB> Thanx Joerg
JB> Here we go:
JB> // Sphere created with: sphere = new Sphere(0.2f)
JB> // Capability Bits set
JB> BoundingSphere sb = new BoundingSphere(new Point3d(0f,0f,0f),0.2d);
JB> System.out.println("Created Bounding Sphere: "+ sb.toString());
JB> sphere.setBounds(sb);
JB> System.out.println("Sphere Bounds:" + sphere.getBounds().toString());
JB> sb = (BoundingSphere) sphere.getBounds();
JB> sb.setRadius(4d);
JB> System.out.println("Changed Bounding Sphere: "+ sb.toString());
JB> sphere.setBounds(sb);
JB> System.out.println("Sphere Bounds:" + sphere.getBounds().toString());
JB> And here are the results:
JB> Created Bounding Sphere: Center=(0.0, 0.0, 0.0) Radius=0.2
JB> Sphere Bounds: Center=(0.0, 1.3307424243170417E-19,
JB> -0.0021732673048973083)
JB> Radius=0.34326929992848926
JB> Changed Bounding Sphere: Center=(0.0, 1.3307424243170417E-19,
JB> -0.0021732673048973083)
JB> Radius=4.0
JB> Sphere Bounds: Center=(0.0, 1.3307424243170417E-19,
JB> -0.0021732673048973083)
JB> Radius=0.34326929992848926
JB> ===========================================================================
JB> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
JB> of the message "signoff JAVA3D-INTEREST". For general help, send email to
JB> [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".