Show
Ignore:
Timestamp:
04/27/15 21:31:13 (3 hours ago)
Author:
robert
Message:

Renamed LineSegment::intersect(BoundingSphere/Box?, double/float&, double/float&) methods to LineSegment::intersectAndComputeRations(..) to avoid confusion with the change in convention for
the old intersect(BoundingBox?&, float/double&, float/double&) method as it was inconsitent with the rest of the OSG including the intersect(BoundingSphere?) method in how the ratio for the
second intersection was measure from - original from the end point, but now made consistent with other places in the OSG so be based on ration from start to end of segment.

Files:
1 modified

Legend:

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

    r13930 r13936  
    12261226            osg::ref_ptr<osgVolume::VolumeScene> volumeScene = new osgVolume::VolumeScene; 
    12271227            volumeScene->addChild(loadedModel.get()); 
     1228            loadedModel->getOrCreateStateSet(); 
    12281229            loadedModel = volumeScene.get(); 
    12291230        } 
    1230  
    12311231 
    12321232