From: curt Date: Tue, 8 Jun 1999 11:20:24 +0000 (+0000) Subject: Also add really small area polygons to sliver list, even if they pass X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa2fdd282d3b74302568de095d8d2d928dff588d;p=flightgear.git Also add really small area polygons to sliver list, even if they pass the min_angle test. --- diff --git a/Tools/Construct/Clipper/clipper.cxx b/Tools/Construct/Clipper/clipper.cxx index 0b8bd3b63..db1bfeb7b 100644 --- a/Tools/Construct/Clipper/clipper.cxx +++ b/Tools/Construct/Clipper/clipper.cxx @@ -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