Show
Ignore:
Timestamp:
09/15/10 14:00:12 (4 years ago)
Author:
robert
Message:

From Magnus Kessler, "Attached are a number of files where I have tried to fix up some of the
documentation. I have accumulated them over some time, but rebased onto the
subversion trunk."

Files:
1 modified

Legend:

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

    r8998 r11763  
    165165osg::Node* createOccluder(const osg::Vec3& v1,const osg::Vec3& v2,const osg::Vec3& v3,const osg::Vec3& v4,float holeRatio=-1.0f) 
    166166{ 
    167    // create and occluder which will site along side the loadmodel model. 
     167   // create an occluder which will sit alongside the loaded model. 
    168168    osg::OccluderNode* occluderNode = new osg::OccluderNode; 
    169169 
    170     // create the convex planer occluder  
     170    // create the convex planar occluder 
    171171    osg::ConvexPlanarOccluder* cpo = new osg::ConvexPlanarOccluder; 
    172172 
     
    182182    occluder.add(v4); 
    183183 
    184     // create a whole at the center of the occluder if needed. 
     184    // create a hole at the center of the occluder if needed. 
    185185    if (holeRatio>0.0f) 
    186186    { 
     
    229229    // add the occluder geode as a child of the occluder, 
    230230    // as the occluder can't self occlude its subgraph the 
    231     // geode will never be occluder by this occluder. 
     231    // geode will never be occluded by this occluder. 
    232232    occluderNode->addChild(geode);     
    233233     
     
    305305    } 
    306306 
    307     // if user request help write it out to cout. 
     307    // if user requests help write it out to cout. 
    308308    if (arguments.read("-h") || arguments.read("--help")) 
    309309    { 
     
    315315    osg::Node* loadedmodel = osgDB::readNodeFiles(arguments); 
    316316     
    317     // if not loaded assume no arguments passed in, try use default mode instead. 
     317    // if not loaded assume no arguments passed in, try using default mode instead. 
    318318    if (!loadedmodel) loadedmodel = osgDB::readNodeFile("glider.osg"); 
    319319     
    320320    if (!loadedmodel) 
    321321    { 
    322         osg::notify(osg::NOTICE)<<"Please sepecify and model filename on the command line."<<std::endl; 
     322        osg::notify(osg::NOTICE)<<"Please specify a model filename on the command line."<<std::endl; 
    323323        return 1; 
    324324    }