Hi John,

         Thanks for your speedy reply.... however I'm unsure as how to
modify the contents of the branch group... ie modifiy a child shape in one
of my transformGroups, which belongs to a branchGroup.

What i'm trying to do is allow the user to click a button, add a cube, so
its visible in the canvas 3D, allow the user to move the cube, adding a
another cube and so forth. Also allowing them to remove the cube of course.

do you know how i could achieve this???



cheers,

Q.



At 12:55 23/05/2001 -0500, you wrote:
>Quoc,
>
>That's correct, you can only detach BranchGroups.  If you want to remove
>something else you have to detach the BranchGroup first, then modify it,
>then attach it again.
>
>- John Wright
>Starfire Research
>
>Quoc Huynh wrote:
> >
> > Hi All,
> >
> >         I'm new to java3d, I'm having trouble allowing the user to add
> and remove
> > objects in the scene. I'm not sure how to remove a child object from a
> > transform group. Whenever i use the removeChild() method, i get an error
> > message saying that I can only remove BranchGrouyp objects... obviously i
> > need some other way of doing this...
> >
> > any thoughts, pointers to example code that is doing something similar
> > would be greatly appreciated.
> >
> > cheers,
> >
> > Q.
> >
> > ===========================================================================
> > 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