Hi Mona, Why not extend the Switch class with your own that implements the behaviour you expect. Then, you Switch class can maintain the indexing your prefer, keeping track of which nodes in the underlying switch are null.
josh ---------------------------------------------------- Joshua L. Richmond, BASc, MSc. Systems Design Engineering / Orbital Express Program MD Robotics 9445 Airport Rd, Brampton, ON, Canada (905) 790-2800 x4332 http://www.mdrobotics.ca ----------------------------------------------------- >>> Mona Wong-Barnum <[EMAIL PROTECTED]> 11/18/03 09:44PM >>> > I think I remember something about Switch removing null references when > the Switch node is compiled. That would explain the problem that I am running into... I guess it seem the proper thing to do is to throw an exception, because my application references all the switches via my own data structure and expects it to be there. My hack workaround to catch these null Shapes3D and not add them to the Switch. This fixes the undesirable behavior... but it would be nice if I can keep these objects in my data structure and simply have the Switch do nothing. Thanks to all who responded. cheers, Mona ================================================================== Mona Wong-Barnum National Center for Microscopy and Imaging Research University of California, San Diego http://ncmir.ucsd.edu/ "Circumstances don't make a man, they reveal him" -- James Allen ================================================================== =========================================================================== 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".
BEGIN:VCARD VERSION:2.1 X-GWTYPE:USER FN:Josh Richmond TEL;WORK:4332 ORG:MDRobotics Ltd.;Systems Engineering #211 EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED] N:Richmond;Josh TITLE:BASc., MSc. ADR;INTL;WORK;PARCEL;POSTAL:;Mailstop 23;9445 Airport Rd;Brampton;ON;L6S 4J3;Canada LABEL;INTL;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Josh Richmond=0A= Mailstop 23=0A= 9445 Airport Rd=0A= Brampton, ON L6S 4J3=0A= Canada LABEL;DOM;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Josh Richmond=0A= Mailstop 23=0A= 9445 Airport Rd=0A= Brampton, ON L6S 4J3 END:VCARD =========================================================================== 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".