From 732ca180d1b2c3842bd3f362b8f072a731aa7ee2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 5 Jun 2006 16:25:29 +0000 Subject: [PATCH] Added missing clip against maximum azimuth. --- src/osgSim/SphereSegment.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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);