Improved the calculation of distance around the globe within the ElevationSlice routine.

This commit is contained in:
Robert Osfield
2006-12-04 17:31:20 +00:00
parent 0f5aeb5fa3
commit ba3fe2844f
2 changed files with 119 additions and 20 deletions

View File

@@ -134,7 +134,7 @@ int main(int argc, char **argv)
es.setDatabaseCacheReadCallback(los.getDatabaseCacheReadCallback());
es.setStartPoint(bs.center()+osg::Vec3d(bs.radius(),0.0,0.0) );
es.setEndPoint(bs.center()+osg::Vec3d(0.0,bs.radius(),0.0) );
es.setEndPoint(bs.center()+osg::Vec3d(0.0,0.0,bs.radius()) );
es.computeIntersections(scene.get());
@@ -149,6 +149,7 @@ int main(int argc, char **argv)
dhitr != dhl.end();
++dhitr)
{
std::cout.precision(10);
std::cout<<" "<<dhitr->first<<" "<<dhitr->second<<std::endl;
}