Added computation of the bounding volume of osg::OccluderNodes.

Added support for osg::BoundingSphere::expandBy*(osg::BoundingBox) and have
added osg::BoundingSphere/Box::valid() which deprecates isValid(), this
is to be more consistent with other classes in the OSG.
This commit is contained in:
Robert Osfield
2002-06-19 15:18:47 +00:00
parent 21beb236d2
commit b12e36cede
4 changed files with 84 additions and 26 deletions

View File

@@ -107,6 +107,8 @@ osg::Node* createOccluder(const osg::Vec3& v1,const osg::Vec3& v2,const osg::Vec
geoset->setPrimType(osg::GeoSet::QUADS);
geoset->setNumPrims(1);
// geoset->setPrimType(osg::GeoSet::POINTS);
// geoset->setNumPrims(4);
osg::Geode* geode = osgNew osg::Geode;
geode->addDrawable(geoset);