Title: Message
Hi Dafna,
You should be able to remove the BranchGroup itself that is the ultimate parent of all of your spheres. So - you are not removing all of the BranchGroup's children, but rather you are removing the BranchGroup. That works fine. (As long as you have set the relevant capability on the BranchGroup you want to remove).
 
Lewis.
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of dafna gordon
Sent: 07 October 2003 14:00
To: [EMAIL PROTECTED]
Subject: [JAVA3D] removing childs

Hi All,
i use a behavior to draw spheres. this behavior updates from other class and draws the spheres recording to the data in the other class.
i want every time that the behavior is doing the updating it will remove all the spheres from the previous update and draw the new ones.
i tried doing removeAllChildren() to the related branch group but got a restrictedAccessException since this branch group is already compiled and live and his children aren't of type branch group.
the child of the branch group is a transform group.
the child of the transform group is the sphere that is drawn on the screen.
so how do i remove the sphere from the screen?
thanks a lot
Dafna
=========================================================================== 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".

Reply via email to