Hi,
You can also add RenderingAttributes to the Appearance of the objects (using the
setRenderingAttributes method of Appearance), then use the setVisible method of
RenderingAttributes to show/hide the objects.
Mona Wong wrote:
> Hi:
>
> I'm sure this must be documented somewhere but I have not been able to
> find the answer, especially with j3d.org down ...
>
> I have several 3d objects in my canvas and I want to allow the user to
> turn off display of any object(s) s/he chooses. I can see several ways of doing
> this ...
>
> 1. Make each object a BranchGroup and detach it when requested by the
> user
> 2. Change the color or the object to the background color so the user
> will no longer "see" it
> 3. "Detach" the object from the BranchGroup.
>
> Does anyone have any input on what is the proper or best method? If #3
> is the answer, could someone point me to some docs on how to do this?
>
> Thanks,
>
> Mona
>
> ==================================================================
> Mona Wong
> National Center for Microscopy and Imaging Research
> University of California, San Diego
> http://ncmir.ucsd.edu/
>
> "The truth shall set you free, but first it will piss you off"
> A Landmark instructor
> ==================================================================
>
> ===========================================================================
> 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".