Hi

Try setting the appropriate capability bits (BranchGroup.ALLOW_DETACH) and
calling the BranchGroup's detach() method.

B.D.


>From: "Altshooler, Rakefet (MED)" <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [JAVA3D] Adding and removing nodes to a live scene
>Date: Wed, 18 Jul 2001 16:33:25 +0200
>
>         Hi,
>
>         I need to add & remove nodes from a scene while it is alive &
>compiled.
>         I have some questions about this subject:
>*       As I understand, I can add / remove only nodes from type
>BranchGroup
>to a live scene. In didn't
>                 know it and I thought to make my scene something like this
>(I'm simplifying it):
>
>                                         SimpleUniverse
>                                                 |
>                                                 |
>                                         BranchGroup
>                                                 |
>                                                 |
>                                                 |
>                                         TransformGroup (main transform
>group)
>                                                 |
>
>---------------------------------------------------
>                                 |               |                 |
>                         TransformGroup      TransformGroup
>TransformGroup
>
>                 Now I understand that each TransformGroup has to be added
>to
>BranchGroup which will be added to the main
>                 TransformGroup.
>                 It looks like a lot of overhead (I will have more
>transformGroups leafs). Is there another solution?
>
>*       When I want to remove a node, I have to give it's index. I searched
>how I can get a node's index and I didn't find.
>                 I also searched if I can give the object itself to be
>removed and not its index but I didn't find such possibility.
>                 I know that I can insert a node and ask to put it in a
>specific index and this way I will know its index but it means that
>                 I have to manage a list with index - node.
>                 What do you suggest me to do?
>
>                 Thanks in advance,
>                 Rakefet Altshooler
>
>===========================================================================
>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".

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

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