* Josh Babcock -- Saturday 18 February 2006 23:08: > Personally, I would like to see two tools added, one a function call to > export a visual representation of a subtree as text,
Index: model.cxx =================================================================== RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/model/model.cxx,v retrieving revision 1.36 diff -u -p -r1.36 model.cxx --- model.cxx 11 Dec 2005 13:35:05 -0000 1.36 +++ model.cxx 18 Feb 2006 22:30:59 -0000 @@ -353,6 +353,8 @@ sgLoad3DModel( const string &fg_root, co } #endif + if (props.getBoolValue("dump", false)) + model->print(stderr, "", 1); return alignmainmodel; } Then you'd just add a <dump> bool: <PropertyList> <path>bo105.ac</path> <dump>true</dump> <offsets> <x-m>2.5</x-m> <z-m>-.2</z-m> </offsets> ... and it would output the model structure: ... ssgBranch: Name=Aircraft Num Kids=2 ssgBranch: Name=Aircraft Num Kids=0 ssgSelector: Name=NoName Num Kids=1 ssgVtxArray: Name=bounding_box ssgSimpleState: 0xa1cba48 ssgVertexArray: Name=NoName Total # items = 12 ... This isn't exactly pretty, but not bad for two lines of code. :-) Maybe you want to use some other constant than 1 in the print(). m. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel