One small additional bit of sanity checking and cleanup.
This commit is contained in:
parent
a00eb22170
commit
13cf4600c7
1 changed files with 7 additions and 3 deletions
|
@ -141,12 +141,14 @@ TGTriangle::build( const point_list& corner_list,
|
||||||
#endif
|
#endif
|
||||||
gpc_poly = remove_dups( gpc_poly );
|
gpc_poly = remove_dups( gpc_poly );
|
||||||
gpc_poly = reduce_degeneracy( 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_dups( gpc_poly );
|
||||||
gpc_poly = remove_bad_contours( gpc_poly );
|
gpc_poly = remove_bad_contours( gpc_poly );
|
||||||
gpc_poly = remove_cycles( gpc_poly );
|
gpc_poly = remove_cycles( gpc_poly );
|
||||||
|
|
||||||
cout << "after sanity checks, contours = "
|
cout << "after sanity checks, contours = "
|
||||||
<< gpc_poly.contours() << endl;
|
<< gpc_poly.contours() << endl;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
for ( j = 0; j < gpc_poly.contours(); ++j ) {
|
for ( j = 0; j < gpc_poly.contours(); ++j ) {
|
||||||
cout << " contour " << j << " size = "
|
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 );
|
calc_points_inside( gpc_poly );
|
||||||
|
cout << "after calc_points_inside()" << endl;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// old way
|
// old way
|
||||||
|
|
Loading…
Reference in a new issue