void ShapeToGeometryVisitor::apply(const osg::CompositeShape& group) { for(unsigned int i=0;i<group.getNumChildren();++i) { group.getChild(i)->accept(*this); } }
static bool writeChildren( osgDB::OutputStream& os, const osg::CompositeShape& shape ) { unsigned int size = shape.getNumChildren(); os << size << os.BEGIN_BRACKET << std::endl; for ( unsigned int i=0; i<size; ++i ) { os << shape.getChild(i); } os << os.END_BRACKET << std::endl; return true; }