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