Ejemplo n.º 1
0
void ShapeToGeometryVisitor::apply(const osg::CompositeShape& group)
{
    for(unsigned int i=0;i<group.getNumChildren();++i)
    {
        group.getChild(i)->accept(*this);
    }
}
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 3
0
static bool checkChildren( const osg::CompositeShape& shape )
{
    return shape.getNumChildren()>0;
}