From aa2fdd282d3b74302568de095d8d2d928dff588d Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 8 Jun 1999 11:20:24 +0000 Subject: [PATCH] Also add really small area polygons to sliver list, even if they pass the min_angle test. --- Tools/Construct/Clipper/clipper.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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