I wish I could do that. If I use nulls instead of a branchgroup I get an exception:
java.lang.InternalError: Group: only BranchGroup nodes may be set --- Luis ----- Original Message ----- From: "Justin Couch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 11:23 AM Subject: Re: [JAVA3D] Switch Node behavior with removals... > Luis Villablanca wrote: > > > of removing the child node I insert a phony empty BranchGroup node > > > > and maintain a parallel list of the available (deleted) switches. > > For less memory usage, use "null" rather than empty branchgroups. ie > > mySwitch.setChild(null, some_index); > > -- > Justin Couch http://www.vlc.com.au/~justin/ > Java Architect & Bit Twiddler http://www.yumetech.com/ > Author, Java 3D FAQ Maintainer http://www.j3d.org/ > ------------------------------------------------------------------- > "Humanism is dead. Animals think, feel; so do machines now. > Neither man nor woman is the measure of all things. Every organism > processes data according to its domain, its environment; you, with > all your brains, would be useless in a mouse's universe..." > - Greg Bear, Slant > ------------------------------------------------------------------- > > =========================================================================== > 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".
