Show
Ignore:
Timestamp:
12/04/06 18:31:20 (8 years ago)
Author:
robert
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgintersection/osgintersection.cpp

    r5790 r5791  
    135135 
    136136            es.setStartPoint(bs.center()+osg::Vec3d(bs.radius(),0.0,0.0) ); 
    137             es.setEndPoint(bs.center()+osg::Vec3d(0.0,bs.radius(),0.0) ); 
     137            es.setEndPoint(bs.center()+osg::Vec3d(0.0,0.0,bs.radius()) ); 
    138138 
    139139            es.computeIntersections(scene.get()); 
     
    150150                ++dhitr) 
    151151            { 
     152                 std::cout.precision(10); 
    152153                 std::cout<<"  "<<dhitr->first<<" "<<dhitr->second<<std::endl; 
    153154            }