[JAVA3D] detach() suggestion

2000-08-01 Thread J. Lee Dixon
Why is there not a Node.detach() function? In order to detach a Node child from its parent, currently you have to go to the parent, then search the list of its children to find the index of the one you want to detach, then call Group.removeChild(index). (Am I missing some better way of doing

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Christopher Collins
] -Original Message- From: Rob Nugent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 01, 2000 10:23 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] detach() suggestion J. Lee, I made this mistake (and asked this question a few months back). There is a detach() method in BranchGroup

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Rob Nugent
[home] Memorial University of Newfoundland (709) 749-4383 [cell] -Original Message- From: Rob Nugent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 01, 2000 10:23 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] detach() suggestion J. Lee, I made this mistake (and asked

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Matthew Flagg
To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] detach() suggestion Rob and everyone else, On a related note then... why is there only BranchGroup.detach() and not a general Node.detach()? It makes scenes much larger when you have many shapes, each with it's own BranchGroup to allow the shapes

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Christopher Collins
[home] Memorial University of Newfoundland (709) 749-4383 [cell] -Original Message- From: Pondrom, Pierre L [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 01, 2000 11:15 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] detach() suggestion I would like to give my users the capability

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread J. Lee Dixon
To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] detach() suggestion Chris and the list, Probably by keeping detach() in only BranchGroup it is easier to do the optimizations when a scenegraph is compiled. That would be my guess. -Original Message- From: Christopher Collins [mailto

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Pondrom, Pierre L
-- From: Christopher Collins[SMTP:[EMAIL PROTECTED]] Reply To: Discussion list for Java 3D API Sent: Tuesday, August 01, 2000 9:26 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] detach() suggestion Hi Pierre, This is simplistic, but couldn't you have each

Re: [JAVA3D] detach() suggestion

2000-08-01 Thread Andrew R. Thomas-Cramer
: [JAVA3D] detach() suggestion How about this, in addition to the existing Group.removeChild(index), we have Group.removeChild(Node). Then, the Group parent could search its list, find the node, and call .removeChild(index) on its own. Then, one step further, Node.removeFromParent() would just call