|
From: <luc...@li...> - 2001-08-17 12:10:00
|
I managed to write a very basic geometry parser implementing my own VrmlNodeVisitor class (for the moment it gets only Boxes' geometry). Sorry but now i have some more questions... :PP Why every VrmlNode has a flag to signal if the node has been visited or not? Also i think that even if the addition of a getchildren method in the vrmlnode interface would help a lot i believe that traversing the scene graph is anyway a process that still depends on node types. I think that a possible solution to consider would be also to redesign the VrmlNodeVisitor class using just a pure virtual destructor and implementing all the other virtual functions so that they traverse the scene graph without doing anything else. Doing this way one can use the base class functions to traverse the scene graph while ovverriding only virtual functions that corresponds to nodes of interest. I managed also to have doxygen generating documentation for the complete class hierarchy together with inheritance diagrams and source code references. If someone needs the script i used just drop me a line. Greets Luca |