Box uses six Shape3D for each object. This useful to set a different Appearance for each face.
If you don't mind to have the same appearance for all faces, you can create your own box using a single Shape3D. To do this, create a single geometry for your "cube" and use it to create as many Shape3D you need.
PLEASE, note you must use the *same* geometry instance for all shapes. This way you avoid memory bloat by re-using geometry. All Java3D Primitives including original Box , uses this feature called "geometry sharing"
Of course you can also reuse Appearance instances, if you have more than one box with same appearance properties ;)
Btw, you can also increase memory maximum size, using JVM parameter -Xmx512m or more. Of course you must have enough free memory for this.
A.
[Message sent by forum member 'aces' (aces)]
http://forums.java.net/jive/thread.jspa?messageID=282147---------------------------------------------------------------------
To unsubscribe, e-mail:
interest-unsubscribe@...
For additional commands, e-mail:
interest-help@...