Here's what I did to remove the entire content side of the scene graph:
Enumeration allBGs = dummyU.getLocale().getAllBranchGraphs();
// first branchgroup is the view branch, leave it alone...
BranchGroup BG = (BranchGroup)allBGs.nextElement();
// if another branchgroup exists, it is the content group, so remove
it.
if (allBGs.hasMoreElements()) {
dummyU.getLocale().removeBranchGraph((BranchGroup)allBGs.nextElement());
}
You have to set a permission for the branchgroup to allow removal.
Daniel
-----Original Message-----
From: Aruna Balasubramanian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 19, 2000 10:25 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Removing objects from a scene graph
Hi:
Does anybody know of a method to remove visual objects from a scene
graph?? Is there a way to do this dynamically by using a mouse event or a
keyboard event? Please help..
Thanks,
Aruna
===========================================================================
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".
===========================================================================
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".