Show
Ignore:
Timestamp:
12/04/06 13:36:13 (7 years ago)
Author:
robert
Message:

Added preliminary support for generating distance, height lists for ElevationSlice?.

Files:
1 modified

Legend:

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

    r5764 r5790  
    142142 
    143143            std::cout<<"Completed in "<<osg::Timer::instance()->delta_s(startTick,endTick)<<std::endl; 
     144 
     145            typedef osgSim::ElevationSlice::DistanceHeightList DistanceHeightList; 
     146            const DistanceHeightList& dhl = es.getDistanceHeightIntersections(); 
     147            std::cout<<"Number of intersections ="<<dhl.size()<<std::endl; 
     148            for(DistanceHeightList::const_iterator dhitr = dhl.begin(); 
     149                dhitr != dhl.end(); 
     150                ++dhitr) 
     151            { 
     152                 std::cout<<"  "<<dhitr->first<<" "<<dhitr->second<<std::endl; 
     153            } 
     154 
     155 
    144156        } 
    145157    }