Also add really small area polygons to sliver list, even if they pass
the min_angle test.
This commit is contained in:
parent
f13b3855c1
commit
aa2fdd282d
1 changed files with 3 additions and 1 deletions
|
@ -182,7 +182,9 @@ void FGClipper::move_slivers( FGPolygon& in, FGPolygon& out ) {
|
||||||
<< min_angle * 180.0 / FG_PI << endl;
|
<< min_angle * 180.0 / FG_PI << endl;
|
||||||
cout << " area = " << area << 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;
|
cout << " WE THINK IT'S A SLIVER!" << endl;
|
||||||
|
|
||||||
// check if this is a hole
|
// check if this is a hole
|
||||||
|
|
Loading…
Reference in a new issue