How do you detach the branchgroup. If you are using an index do you start
from 0, or do you use the right one?
Don't you have a variable for your branchgroup? You can then use
myBranchGroup.detach() ;
If you want to you can post the lines in your code where you are doing the
detaching...
Hope this helps!
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Tina Manoharan Valappil
Sent: Friday, August 03, 2001 8:24 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Model Clip Error
Hi All,
After I add an object to the scope of the ModelClip instance I get the
following exception when detaching the BranchGroup that contains this
ModelClip node. Can someone please tell me why it is doing so??
exception:
Exception occurred during event dispatching:
java.lang.IndexOutOfBoundsException: Index: 0, Size:0
at java.util.ArrayList.RangeCheck(ArrayList.java:491)
at java.util.ArrayList.remove(ArrayList.java:375)
at javax.media.j3d.GroupRetained.clearLive(GroupRetained.java:1756)
at
javax.media.j3d.GroupRetained.checkClearLive(GroupRetained.java:1142)
at
javax.media.j3d.GroupRetained.checkClearLive(GroupRetained.java:1104)
at javax.media.j3d.GroupRetained.doRemoveChild(GroupRetained.java:301)
at
javax.media.j3d.BranchGroupRetained.do_detach(BranchGroupRetained.java:78)
at
javax.media.j3d.BranchGroupRetained.detach(BranchGroupRetained.java:65)
at javax.media.j3d.BranchGroup.detach(BranchGroup.java:97)
Thanks for your help
Tina
===========================================================================
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".