diff --git a/src/osgSim/SphereSegment.cpp b/src/osgSim/SphereSegment.cpp index 2b519eead..8d774e2e0 100644 --- a/src/osgSim/SphereSegment.cpp +++ b/src/osgSim/SphereSegment.cpp @@ -2930,6 +2930,10 @@ SphereSegment::LineList SphereSegment::computeIntersection(const osg::Matrixd& m tif.trim(azMinLines, elevMinIntersector); tif.trim(azMaxLines, elevMinIntersector); + // trim the azim intersection lines by the elevation + tif.trim(azMinLines, elevMaxIntersector); + tif.trim(azMaxLines, elevMaxIntersector); + // trim the centeral ends of the azim lines tif.trim(azMinLines,azMinEndIntersector); tif.trim(azMaxLines,azMaxEndIntersector);