Fixed the computation of terrain bounding volume so that it properly accounts for

elevation layers
This commit is contained in:
Robert Osfield
2008-01-17 15:37:35 +00:00
parent ae33e4a459
commit efdc026114
4 changed files with 61 additions and 32 deletions

View File

@@ -555,9 +555,9 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::Layer)
__unsigned_int__getModifiedCount,
"Get modified count value. ",
"");
I_Method0(osg::BoundingSphere, computeBound,
I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer,
Properties::VIRTUAL,
__osg_BoundingSphere__computeBound,
__osg_BoundingSphere__computeBound__bool,
"",
"");
I_SimpleProperty(const osg::Vec4 &, DefaultValue,
@@ -693,9 +693,9 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::ProxyLayer)
__unsigned_int__getModifiedCount,
"Get modified count value. ",
"");
I_Method0(osg::BoundingSphere, computeBound,
I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer,
Properties::VIRTUAL,
__osg_BoundingSphere__computeBound,
__osg_BoundingSphere__computeBound__bool,
"",
"");
I_SimpleProperty(const std::string &, FileName,