Hi Dola:
I think the answer will depend on how your scene graph is built relative
to what is considered an "object".
I tried the detach/re-attach method but didn't like the result ... since
I built a single object using many shapes, when I detached one shape at a time
from the object, I saw portion of the object disappear and that was too weird.
I ended up using the switch method since I was able to put all the
shapes belonging to a single object into a switch node, the object disappeared
and reappeared in a single move and that is what I wanted. The performance was
also better using this method.
Hope that helps.
Cheers,
Mona
> This must be very silly question with an obvious
> answer. What is the easiest way to toggle objects in
> and out of (i.e. show/hide) the scene graph?
>
> The solutions that occur to me are the following
>
> 1. Detach/Re-attach.
> 2. Use a show/hide switch (that I am missing?)
> 3. Use a bounding object to set bounds (I've tried
> this on a Shape3D, but it doesn't work).
> 4. ?
>
> So which one? Thanks!
>
> Dola
==================================================================
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".