- Timestamp:
- 02/13/07 23:24:51 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgintersection/osgintersection.cpp
r5927 r6177 41 41 std::cout<<"Intersection "<<std::endl; 42 42 43 osg::CoordinateSystemNode* csn = dynamic_cast<osg::CoordinateSystemNode*>(scene.get());44 osg::EllipsoidModel* em = csn ? csn->getEllipsoidModel() : 0;45 43 46 44 osg::BoundingSphere bs = scene->getBound(); … … 50 48 bool useLineOfSight = true; 51 49 50 //osg::CoordinateSystemNode* csn = dynamic_cast<osg::CoordinateSystemNode*>(scene.get()); 51 //osg::EllipsoidModel* em = csn ? csn->getEllipsoidModel() : 0; 52 52 53 if (useLineOfSight) 53 54 { … … 57 58 osg::Vec3d deltaRow( 0.0, 0.0, bs.radius()*0.01); 58 59 osg::Vec3d deltaColumn( bs.radius()*0.01, 0.0, 0.0); 60 61 osgSim::LineOfSight los; 62 63 #if 1 59 64 unsigned int numRows = 20; 60 65 unsigned int numColumns = 20; 61 62 osgSim::LineOfSight los;63 64 #if 065 66 osgSim::HeightAboveTerrain hat; 66 67 hat.setDatabaseCacheReadCallback(los.getDatabaseCacheReadCallback());
