Removed OSG_USE_BOUND and associated osg::Bound adapter class to avoid problems with BoundingBox::expandBy/expandByRadius() implementation choosing a null BoundingBox from

the osg::Bound class causing crashes.
This commit is contained in:
Robert Osfield
2014-06-02 16:20:39 +00:00
parent e1ec4ec67f
commit 2d41cbd0cf
8 changed files with 2 additions and 89 deletions

View File

@@ -22,10 +22,6 @@
#include <osg/BoundingSphere>
#include <osg/BoundingBox>
#ifdef OSG_USE_BOUND
#include <osg/Node>
#endif
#include <vector>
namespace osg {
@@ -325,13 +321,6 @@ class OSG_EXPORT Plane
}
#ifdef OSG_USE_BOUND
inline int intersect(const Bound& bound) const
{
if (bound.bb) return intersect(*bound.bb);
else return intersect(*bound.bs);
}
#endif
/** Transform the plane by matrix. Note, this operation carries out
* the calculation of the inverse of the matrix since a plane
* must be multiplied by the inverse transposed to transform it. This