]> git.mxchange.org Git - flightgear.git/commitdiff
Also add really small area polygons to sliver list, even if they pass
authorcurt <curt>
Tue, 8 Jun 1999 11:20:24 +0000 (11:20 +0000)
committercurt <curt>
Tue, 8 Jun 1999 11:20:24 +0000 (11:20 +0000)
the min_angle test.

Tools/Construct/Clipper/clipper.cxx

index 0b8bd3b63c22b1151a7b1c91a1d92eeae5c009a4..db1bfeb7b81e93d01061eb745b7cf0960a8a1b1e 100644 (file)
@@ -182,7 +182,9 @@ void FGClipper::move_slivers( FGPolygon& in, FGPolygon& out ) {
             << min_angle * 180.0 / FG_PI << endl;
        cout << "  area = " << area << endl;
 
-       if ( (min_angle < angle_cutoff) && (area < area_cutoff)  ) {
+       if ( ((min_angle < angle_cutoff) && (area < area_cutoff)) ||
+            (area < area_cutoff / 10.0) )
+       {
            cout << "      WE THINK IT'S A SLIVER!" << endl;
 
            // check if this is a hole