From Wojciech Lewandowski, "Most recent changes to CameraPathEventHandler change path writing method. Now control points are written on the fly. But default stream precision is not adjusted as it used to and remains set to 6 digits (at least with VS 2008) so larger coordinates like positions on Earth Ellipsoid loose lots of fidelity. This patch fixes this issue.

"
This commit is contained in:
Robert Osfield
2008-09-01 10:06:19 +00:00
parent 8fec858b49
commit 2ce8fbdcf9
2 changed files with 10 additions and 1 deletions

View File

@@ -463,6 +463,9 @@ bool RecordCameraPathHandler::handle(const osgGA::GUIEventAdapter &ea, osgGA::GU
osg::notify(osg::NOTICE) << "Recording camera path to file " << ss.str() << std::endl;
_fout.open( ss.str().c_str() );
// make sure doubles are not trucated by default stream precision = 6
_fout.precision( 15 );
}
else
{