Show
Ignore:
Timestamp:
09/08/05 15:10:04 (9 years ago)
Author:
robert
Message:

Added initial interface for computing intersections between sphere segments
and terrain.

Files:
1 modified

Legend:

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

    r4508 r4510  
    273273    } 
    274274 
     275    osgSim::SphereSegment::LineList lines = ss->computeIntersection(terrainGeode.get(), osg::Matrixd::identity()); 
     276    if (!lines.empty()) 
     277    { 
     278       osg::notify(osg::NOTICE)<<"We've found intersections!!!!"<<std::endl; 
     279    } 
     280    else 
     281    { 
     282       osg::notify(osg::NOTICE)<<"No intersections found"<<std::endl; 
     283    } 
     284 
    275285#if 1 
    276286 
     
    286296 
    287297    root->addChild(overlayNode); 
     298     
     299     
    288300#else 
    289301    root->addChild(terrainGeode);