Mona Wong-Barnum wrote:

Hi Kelvin:

       That gave the same runtime error.

       [...]
       sphere = new Sphere ( radius, createAppearance ( color ) );
       sphere.setCapability ( Shape3D.ALLOW_APPEARANCE_READ );
       sphere.setCapability ( Shape3D.ALLOW_APPEARANCE_WRITE );
       [...]




Sphere is a Group contains Shape3D, so there is no use setting
Group
ALLOW_APPEARANCE_READ/WRITE Capability.
since Group has no Appearance.

Instead get the Shape3D from Sphere and set the Capability
under it,

sphere.getShape().setCapability ( Shape3D.ALLOW_APPEARANCE_READ );

Same for Box and Cylinder utility.

- Kelvin
-----------
Java 3D Team
Sun Microsystems Inc.

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