Changeset 520


Ignore:
Timestamp:
09/24/10 11:35:20 (20 months ago)
Author:
ddangelo
Message:

Function to write nodes to disk added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/python/avango/osg/OSGNode.cpp

    r515 r520  
    3636#include <osg/ComputeBoundsVisitor> 
    3737 
     38#include <osgDB/WriteFile> 
     39 
    3840 
    3941using namespace boost::python; 
     
    5961    return cbbv.getBoundingBox(); 
    6062  } 
     63 
     64  void WriteNodeFile(av::osg::Node * node, std::string filename) 
     65  { 
     66    osgDB::writeNodeFile(*(node->getOsgNode()),filename); 
     67  } 
     68 
    6169} 
    6270 
     
    7684 
    7785def("calc_bounding_box", CalcBoundingBox); 
     86def("write_node_file", WriteNodeFile); 
    7887} 
Note: See TracChangeset for help on using the changeset viewer.