Show
Ignore:
Timestamp:
02/13/07 23:24:51 (7 years ago)
Author:
robert
Message:

Fixed warnings

Files:
1 modified

Legend:

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

    r5927 r6177  
    4141    std::cout<<"Intersection "<<std::endl; 
    4242     
    43     osg::CoordinateSystemNode* csn = dynamic_cast<osg::CoordinateSystemNode*>(scene.get()); 
    44     osg::EllipsoidModel* em = csn ? csn->getEllipsoidModel() : 0; 
    4543     
    4644    osg::BoundingSphere bs = scene->getBound(); 
     
    5048    bool useLineOfSight = true; 
    5149     
     50    //osg::CoordinateSystemNode* csn = dynamic_cast<osg::CoordinateSystemNode*>(scene.get()); 
     51    //osg::EllipsoidModel* em = csn ? csn->getEllipsoidModel() : 0; 
     52 
    5253    if (useLineOfSight) 
    5354    { 
     
    5758        osg::Vec3d deltaRow( 0.0, 0.0, bs.radius()*0.01); 
    5859        osg::Vec3d deltaColumn( bs.radius()*0.01, 0.0, 0.0); 
     60 
     61        osgSim::LineOfSight los; 
     62         
     63#if 1 
    5964        unsigned int numRows = 20; 
    6065        unsigned int numColumns = 20; 
    61  
    62         osgSim::LineOfSight los; 
    63          
    64 #if 0 
    6566        osgSim::HeightAboveTerrain hat; 
    6667        hat.setDatabaseCacheReadCallback(los.getDatabaseCacheReadCallback());