I define polyhdera as Shape3D and I set its capabilities to include
ALLOW_GEOMETRY_WRITE and ALLOW_APPEARANCE_WRITE
theShapes[i].setGeometry(thePolyhedra[i].Line());
theShapes[i].setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
theShapes[i].setAppearance(AA.createAppearanceLine(thePolyhedra[i]));
theShapes[i].setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
This initially displays the polyhdera as lines.
Durring interaction, I can type a key to display the polyhedra
as solids.
I do this by changing the Geometry and the Appearance.
When I then change back to displaying the polyhedra as lines
(again by changing the Shape3D's Geometry and Appearance) I get
the following error:
java.lang.NullPointerException:
at javax.media.j3d.RenderQueue.remove(RenderQueue.java:724)
at javax.media.j3d.RenderQueue.insert(RenderQueue.java:359)
at javax.media.j3d.Traverser.insertRenderObjects(Traverser.java:599)
at javax.media.j3d.Traverser.run(Traverser.java:211)
This seems to be pointing to Java 3D code and not my code.
Is there some reason I can't change a Shape3D's Geometry and
Appearance multiple times after the scene has been compiled?
Any suggestions on how to figure out what's wrong?
Bob Gray
===========================================================================
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".