Paul, Tried that as well ;) The calssName() sometime returns an empty string. Even on a node that is named. I don't know why, but in anycase, I needed something more bullet-proof.
This will all soon be irrelevant as I implement a node visitor... - Nick - ---------------------------------------- > Date: Mon, 27 Aug 2007 17:16:26 +0200 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: [osg-users] Switch Group Detection > > Nick Prudent wrote: > > >Thanks Rafa. That's what I'm already doing...I was hoping for a more elegant > >solution than dynamic casting... > > > > > Not elegant (and not very efficient), but you could check the node's > libraryName() and className() to see if they're "osg" and "Switch", > respectively ;-) > > Paul _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

