Joachim Diepstraten schrieb:
> Hi
>
> Maybe someone can help me with this one. I've got a
> BranchGroup which contains another BranchGroup which contains
> a TransformGroup with a Shape3D. Looking like this
>
> BG
> / \
> BG BG
> | |
> . TG
> . |
> . Shape3D
>
> Now I want to remove the right BranchGroup from the top Branchgroup.
> The top branchgroup has been compiled. (But the right BranchGroup has
> been attached later after compile). When I call removeChild(1) I always
> get a CapabilityNotSetException: Group : no capability to remove
> children. If set all these Capabilities for the top BranchGroup
>
> BranchGroup.ALLOW_DETACH
> Group.ALLOW_CHILDREN_EXTEND
> Group.ALLOW_CHILDREN_READ
>
> I've set
>
> BranchGroup.ALLOW_DETACH in the right BranchGroup
>
> What capability do I have to set that it works as there is no
> ALLOW_CHILDREN_REMOVE capabilty in Node,Group nor BranchGroup
assumed the BG you want to detach is BGright,
shouldn't you call BGright.detach() instead of removeChild(1)???
i used this method to detach single BranchGroups from a (SimpleUniverse),
which works fine.
don't know if its the same for BG->BG connections
greetings
maik
===========================================================================
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".