Hi:

        I am adding a Group to a Switch and trying to get the bound for the
Switch but it is coming up as the default (center=0,0,0 and radius=-1).

        Here is the runtime debugging output:

MONA : contour_object bound = Center=(271.0, 507.0, 0.0)
Radius=23.345235059857504
MONA : objects[CONTOURS] bounds = Center=(0.0, 0.0, 0.0)  Radius=-1.0

        And here is the respective code section:


        Group contour_object;
        .
        .
        .
        private Switch objects[] = new Switch[RENDERING_MODES];
        .
        .
        .
        System.out.println ( "MONA : contour_object bound = " +
contour_object.getBounds() );
        objects[CONTOURS].addChild ( contour_object );
        System.out.println ( "MONA : objects[CONTOURS] bounds = " +
objects[CONTOURS].getBounds() );


        Shouldn't objects[CONTOURS] be giving me the same bounds as the
contour_object's bound?

        All help and pointers are welcome.

Sincerely,

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".

Reply via email to