Christopher,
I can only guess, since it's down to the Sun folks for a good explanation, but
it seems to me that the BranchGroup class is fundamental in this respect. E.G. it
is the unit that can be compiled via compile().
I can't begin to imagine what would happen if you could detach a Node from
a compiled BranchGroup.
Rob
Christopher Collins wrote:
> 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 to be detachable!
> It would be more convenient to be able to have TransformGroup.detach(),
> Shape3D.detach(), etc.
>
> Chris
>
> _____________________________________________________________
> Christopher Collins http://www.ucs.mun.ca/~a62cmc
> Oceanic Consulting Corporation (709) 754-2357 [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 this question a few months back).
>
> There is a detach() method in BranchGroup that works fine.
>
> Rob
>
> J. Lee Dixon wrote:
>
> > 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 this?)
> >
> > Would anyone else like to see this function? How about it, Sun?
> >
> > J. Lee Dixon
> > Software Engineer
> > SAIC - Celebration, FL
> > [EMAIL PROTECTED]
> >
> >
> ===========================================================================
> > 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".
>
> --
>
> Rob Nugent
> Development Manager
> PeerLogic
> [EMAIL PROTECTED]
> http://www.peerlogic.com
> Tel: +44 (0) 1489 585503
> Fax: +44 (0) 1489 881363
>
> ===========================================================================
> 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".
--
Rob Nugent
Development Manager
PeerLogic
[EMAIL PROTECTED]
http://www.peerlogic.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363
===========================================================================
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".