|
From: <luc...@li...> - 2001-08-18 13:00:05
|
It is not so difficult but u have to write some code. The first step is to load the vrml with something like this: parser.vrmlScene(*result,*rootNamespace,tryUrl); This will return all the VRML world as a MFNode in *result. Then u have to derive a Visitor class from VrmlNodeVisitor. This abstract class offers an interface for every node type in the VRML specs. U have to put code dealing with type information in the corresponding visit function and u have also to pay attention on visiting possible children of each node. A good example is found also in the openvrml library: take a look at VrmlNodeCloneVisitor in Vrmlnamespace.cpp , take a look at the visitchildren function to learn how to deal with children. Hope this help Greets Luca |