1
0
Fork 0

Only add non-null polygons to output list.

This commit is contained in:
curt 1999-03-19 22:28:46 +00:00
parent 44550e6b70
commit 549c167962

View file

@ -223,7 +223,10 @@ bool FGClipper::clip_all(const point2d& min, const point2d& max) {
} }
*/ */
polys_clipped.polys[i].push_back(result_diff); // only add to output list if the clip left us with a polygon
if ( result_diff->num_contours > 0 ) {
polys_clipped.polys[i].push_back(result_diff);
}
accum = result_union; accum = result_union;
} }
} }
@ -247,6 +250,9 @@ bool FGClipper::clip_all(const point2d& min, const point2d& max) {
// $Log$ // $Log$
// Revision 1.5 1999/03/19 22:28:46 curt
// Only add non-null polygons to output list.
//
// Revision 1.4 1999/03/19 00:26:18 curt // Revision 1.4 1999/03/19 00:26:18 curt
// Fixed a clipping bug (polygons specified in wrong order). // Fixed a clipping bug (polygons specified in wrong order).
// Touched up a few compiler warnings. // Touched up a few compiler warnings.