Introduced CMake build option for compiling double or float versions of osg::BoundingSphere and osg::BoundingBox.

Introduced code in BoundgingSphere, BoundingBox, ProxyNode and LOD to utilise the above settings.

Added Matrix::value_type, Plane::value_type, BoundingSphere::value_type and BoundingBox::value_type command line 
options that report where the types of floats or doubles.
This commit is contained in:
Robert Osfield
2008-04-03 18:36:50 +00:00
parent fe5c019608
commit 2a54ff3e4a
11 changed files with 225 additions and 78 deletions

View File

@@ -1994,7 +1994,8 @@ void ConvertToInventor::apply(osg::LOD& node)
lod->range.set1Value(i, node.getMaxRange(i));
// set center
lod->center.setValue(node.getCenter().ptr());
osg::Vec3f center(node.getCenter());
lod->center.setValue(center.ptr());
ivLOD = lod;