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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user