static bool writePositionList( osgDB::OutputStream& os, const osg::Billboard& node ) { const osg::Billboard::PositionList& posList = node.getPositionList(); os.writeSize(posList.size()); os<< os.BEGIN_BRACKET << std::endl; for ( osg::Billboard::PositionList::const_iterator itr=posList.begin(); itr!=posList.end(); ++itr ) { os << osg::Vec3d(*itr) << std::endl; } os << os.END_BRACKET << std::endl; return true; }
static bool checkPositionList( const osg::Billboard& node ) { return node.getPositionList().size()>0; }