Chris,

Yes.  That should work in a live sceen.  I plan to use changes to a JTree to

trigger changes in the sceen.  Boxes may only be added or removed from the
top of the stack.  I will set the capabilities and add a BranchGroup as well
as a  TransformGroup.

Thanks for the idea.
Pierre
> ----------
> 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 individual box under it's
> own
> BranchGroup, and oriented with it's own TransformGroup?  In this way, each
> box would be independently detachable.  Just use picking to find the
> BranchGroup of the picked box, then detach it.
>
> Since the orientations are relative to the one below, removal of the top
> one
> should not affect the others, right?
>
> Good luck,
>
> 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: 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 to remove objects from a
> stack.  Let say I have 4 boxes sitting on top of each other.  The boxes
> are oriented relative to the one below it.  Let me ask this question. In
> order to let the user to remove the top box,  would I have to detach the
> entire group from the scene and then rebuild all the boxes except for the
> top one?
>
> > ----------
> > From:         Christopher
> > Collins[SMTP:[EMAIL PROTECTED]]
> > Reply To:     Discussion list for Java 3D API
> > Sent:         Tuesday, August 01, 2000 8:16 AM
> > 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 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".
> >
> >
> ==========================================================================
> > =
> > 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".
>
> ==========================================================================
> =
> 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".

Reply via email to