SUBSCRIBE JAVA3D-INTEREST peter wrote:
>
> hi all:
>   i want to ask how to remove the transformgroup(that is attached to Branch group)? 
>can anyone help me? thx
>

You have to set the right capability bits.

  bg  bg.setCapability(BranchGroup.ALLOW_CHILDREN_READ)
   |  bg.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE)
   |  bg.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND)
   |
  tg  tg.setCapability(TransformGroup.ALLOW_DETACH)

After that you should be able to remove tg in a live scenegraph:

 tg.detach()

Cheers Joerg
--

  http://w5.cs.uni-sb.de/~baus

  Email : [EMAIL PROTECTED]
  Phone : +49-681-302-2016
  Fax   : +49-681-302-4136

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