1
0
Fork 0

One small additional bit of sanity checking and cleanup.

This commit is contained in:
curt 2005-10-31 18:45:19 +00:00
parent a00eb22170
commit 13cf4600c7

View file

@ -141,12 +141,14 @@ TGTriangle::build( const point_list& corner_list,
#endif
gpc_poly = remove_dups( gpc_poly );
gpc_poly = reduce_degeneracy( gpc_poly );
gpc_poly = reduce_degeneracy( gpc_poly ); // can happen multiple time
gpc_poly = remove_dups( gpc_poly );
gpc_poly = remove_bad_contours( gpc_poly );
gpc_poly = remove_cycles( gpc_poly );
cout << "after sanity checks, contours = "
<< gpc_poly.contours() << endl;
/*
for ( j = 0; j < gpc_poly.contours(); ++j ) {
cout << " contour " << j << " size = "
@ -157,7 +159,9 @@ TGTriangle::build( const point_list& corner_list,
}
*/
cout << "before calc_points_inside()" << endl;
calc_points_inside( gpc_poly );
cout << "after calc_points_inside()" << endl;
#if 0
// old way