| 237 | | std::cout << std::endl << "Writing out the original scene graph as 'original.osg'"<<std::endl; |
| 238 | | osgDB::writeNodeFile(*rootnode,"original.osg"); |
| 239 | | |
| 240 | | std::cout << std::endl << "Writing out the graph preserving scene graph as 'graph_copy.osg'"<<std::endl; |
| 241 | | osgDB::writeNodeFile(*graph_copy,"graph_copy.osg"); |
| 242 | | |
| 243 | | std::cout << "Writing out the deep copied scene graph as 'deep_copy.osg'"<<std::endl; |
| 244 | | osgDB::writeNodeFile(*deep_copy,"deep_copy.osg"); |
| 245 | | |
| 246 | | std::cout << "Writing out the shallow copied scene graph as 'shallow_copy.osg'"<<std::endl; |
| 247 | | osgDB::writeNodeFile(*shallow_copy,"shallow_copy.osg"); |
| | 237 | std::cout << std::endl << "Writing out the original scene graph as 'original.osgt'"<<std::endl; |
| | 238 | osgDB::writeNodeFile(*rootnode,"original.osgt"); |
| | 239 | |
| | 240 | std::cout << std::endl << "Writing out the graph preserving scene graph as 'graph_copy.osgt'"<<std::endl; |
| | 241 | osgDB::writeNodeFile(*graph_copy,"graph_copy.osgt"); |
| | 242 | |
| | 243 | std::cout << "Writing out the deep copied scene graph as 'deep_copy.osgt'"<<std::endl; |
| | 244 | osgDB::writeNodeFile(*deep_copy,"deep_copy.osgt"); |
| | 245 | |
| | 246 | std::cout << "Writing out the shallow copied scene graph as 'shallow_copy.osgt'"<<std::endl; |
| | 247 | osgDB::writeNodeFile(*shallow_copy,"shallow_copy.osgt"); |