You need to use the detach() method to remove the object from the parent.
You use this method on the object, not on the parent.
You must also have the proper permissions set for both the object and the
parent.
You have already set some if you are adding objects.  You must now give
them additional properties.

For BranchGroups, these are the normal permissions:
Parent:
BranchGroups.setCapability(BranchGroup.ALLOW_CHILDREN_READ);
BranchGroups.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
BranchGroups.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);

Child:
BranchGroups.setCapability(BranchGroup.ALLOW_CHILDREN_READ);
BranchGroups.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
BranchGroups.setCapability(BranchGroup.ALLOW_DETACH);


At 08:56 AM 04/03/2000 +0100, you wrote:
>Hello all,
>
>I have a little problem. I add a object to my SimpleUniverse but I don�t know
>how can I delete it.
>
>Is posible to do this?
>
>Thank for any 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".

***********************************************************************
Eric Reiss - http://www.sigda.acm.org/Eric/
Email: [EMAIL PROTECTED]

SIGDA Internet Server Manager - http://www.sigda.acm.org/

Assistant Systems Manager - School of Engineering
University of Pittsburgh
***********************************************************************

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