|
From: Braden M. <br...@en...> - 2001-08-03 17:20:37
|
On 03 Aug 2001 14:45:48 +0200, Peter Meier wrote: > > > -------- Original Message -------- > Subject: RE: [Openvrml-develop] Using OpenVrml for a simulation > Date: Wed, 1 Aug 2001 06:24:19 -0700 > From: "luca regini" <luc...@li...> > Reply-To: "luca regini" <luc...@li...> > To: me...@iw... > > This message was sent from Geocrawler.com by "luca regini" > <luc...@li...> [snip] > if i run something like this: > > parser.vrmlScene(*result, *rootNamespace, tryUrl); > > is all the World scene graph returned in *result? Yes. > How to traverse the resulting object graph? One way is to implement VrmlNodeVisitor. Look in VrmlNamespace.cpp at VrmlNodeCloneVisitor for an example. Unfortunately, we don't yet have a good way for traversing the scene graph without knowing anything about the node types. I'm planning on adding a getChildren() method to the VrmlNode interface, which should help with this. Braden |