>From the line #, looks like you are using Java3D 1.2, upgrading to Java3D 1.2.1
will fix the problem.
-Uma
> Delivered-To: [EMAIL PROTECTED]
> X-Sender: ceetm2@odin
> MIME-Version: 1.0
> Date: Sat, 4 Aug 2001 14:05:58 +0100
> From: Tina Manoharan Valappil <[EMAIL PROTECTED]>
> Subject: Re: [JAVA3D] Model Clip Error
> To: [EMAIL PROTECTED]
>
> Hi,
>
> 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() ;
>
> this is what I am doing :
>
> BranchGroup bg;
> createModelClip(BranchGroup objBg)
> {
> bg = new BranchGroup();
> bg.setCapability(BranchGroup.ALLOW_DETACH);
>
> ModelClip mc = new ModelClip();
> ----
> mc.addScope(objBg);
> }
>
> removeModelClip()
> {
> if(bg != null)
> {
> mc.removeScope(0);
> bg.detach();
> }
> }
>
> Thanks
> Tina
>
> >
> > 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".
> >
>
> Tina Manoharan
>
> I can see the light at the end of the tunnel. Yeah! I am getting there.
>
> Work: Home:
> ------ ------
> Heriot Watt University , PhD 89 Lothian Road
> Dept. of Computing & Electrical Eng. Flat: 3f1
> Riccarton, Edinburgh EH14 4AS Edinburgh EH3 9AW
> Ph: 0131 449 5111 ext. 4197 (lab) Ph: 07801 069485 (mobile)
> Ph: 0131 449 5111 ext. 4191 (office) Ph: 07740 959483 (mobile)
> Ph: 0044 131 477 9043
>
>
> ===========================================================================
> 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".