From Emmanuel Roche, "I'm joining an updated version of the file daeWritter.cpp and daeWriter.h for the collada plugin compatible with the usage of double precision BoundingSphere & BoundingBox. The only change is the addition of the template specialization for osg::Vec3d object (until now only the specialization for osg::Vec3 was defined, I replaced that with osg::Vec3f to be more "precise")."

This commit is contained in:
Robert Osfield
2009-06-01 11:07:07 +00:00
parent aa97f1d86a
commit 378ceebf84
2 changed files with 10 additions and 3 deletions

View File

@@ -23,7 +23,14 @@
namespace osgdae {
std::string toString(osg::Vec3 value)
std::string toString(osg::Vec3f value)
{
std::stringstream str;
str << value.x() << " " << value.y() << " " << value.z();
return str.str();
}
std::string toString(osg::Vec3d value)
{
std::stringstream str;
str << value.x() << " " << value.y() << " " << value.z();

View File

@@ -17,7 +17,6 @@
#include <map>
#include <stack>
#include <osg/io_utils>
#include <osg/Node>
#include <osg/Geode>
#include <osg/Geometry>
@@ -72,7 +71,8 @@ std::string toString(T value) {
return str.str();
}
std::string toString(osg::Vec3 value);
std::string toString(osg::Vec3f value);
std::string toString(osg::Vec3d value);
std::string toString(osg::Matrix value);
/**