You can remove BranchGroups from a scene, not
TransformGroups.
If you have to put and remove the same branch you your
scene, consider using Switch. Switch allow you to turn
on/off entire branch groups.
Of course set all needed capability bits ;)

Alessandro


 --- Alp Yilancioglu <[EMAIL PROTECTED]> escreveu: >
Hi,
>
>   Thank you for helping me in this..
>
>   But I still got a problem
>
>
> In the code
>
> Lets say I have 1TG and  2TG named  TransformGroups
>           that have
> setCapability-Allow-transformGroup-read/write
> properties
>
> and  1TG->has the shape added sphere
>         2TG-> has cylınder
> and 1TG.addChild(2TG);
> is working well..
>
> in the code after adding 2TG to 1TG . I can remove
> them too wıth
> removeChıld
>
>        1TG->has sphere
>         2TG-> has cylınder
>         1TG.addChild(2TG);
>         1TG.removeChıld(2TG);
>
> thıs works well too..
>
> but durıng Runtime.. when ı done thıs
> -1TG.removeChıld(2TG);-
>       wıth a functıon whıch ıs performed by pressıng
> a button from a
> panel
>                      the program stops .. no
> renderıng or may be ıt
> crashes ???
>
>
>
>
>
===========================================================================
> 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".
>

______________________________________________________________________

Participe da pesquisa global sobre o Yahoo! Mail:
http://br.surveys.yahoo.com/global_mail_survey_br

===========================================================================
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