1
0
Fork 0

Also add really small area polygons to sliver list, even if they pass

the min_angle test.
This commit is contained in:
curt 1999-06-08 11:20:24 +00:00
parent f13b3855c1
commit aa2fdd282d

View 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