Debuggin output tweaks.
This commit is contained in:
parent
d3e3985f4b
commit
af55795d49
1 changed files with 8 additions and 4 deletions
|
@ -177,7 +177,8 @@ bool FGClipper::clip_all(const point2d& min, const point2d& max) {
|
||||||
|
|
||||||
// process polygons in priority order
|
// process polygons in priority order
|
||||||
for ( int i = 0; i < FG_MAX_AREA_TYPES; ++i ) {
|
for ( int i = 0; i < FG_MAX_AREA_TYPES; ++i ) {
|
||||||
cout << "num polys of this type = " << polys_in.polys[i].size() << endl;
|
// cout << "num polys of this type = "
|
||||||
|
// << polys_in.polys[i].size() << endl;
|
||||||
current = polys_in.polys[i].begin();
|
current = polys_in.polys[i].begin();
|
||||||
last = polys_in.polys[i].end();
|
last = polys_in.polys[i].end();
|
||||||
for ( ; current != last; ++current ) {
|
for ( ; current != last; ++current ) {
|
||||||
|
@ -201,9 +202,9 @@ bool FGClipper::clip_all(const point2d& min, const point2d& max) {
|
||||||
*result_diff = tmp;
|
*result_diff = tmp;
|
||||||
result_union = tmp;
|
result_union = tmp;
|
||||||
} else {
|
} else {
|
||||||
cout << "DIFF: tmp.num_contours = " << tmp.num_contours
|
// cout << "DIFF: tmp.num_contours = " << tmp.num_contours
|
||||||
<< " accum.num_contours = " << accum.num_contours
|
// << " accum.num_contours = " << accum.num_contours
|
||||||
<< endl;
|
// << endl;
|
||||||
// tmp output accum
|
// tmp output accum
|
||||||
FILE *ofp= fopen("tmp-debug", "w");
|
FILE *ofp= fopen("tmp-debug", "w");
|
||||||
gpc_write_polygon(ofp, &tmp);
|
gpc_write_polygon(ofp, &tmp);
|
||||||
|
@ -272,6 +273,9 @@ bool FGClipper::clip_all(const point2d& min, const point2d& max) {
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.9 1999/03/31 23:46:38 curt
|
||||||
|
// Debuggin output tweaks.
|
||||||
|
//
|
||||||
// Revision 1.8 1999/03/30 23:49:22 curt
|
// Revision 1.8 1999/03/30 23:49:22 curt
|
||||||
// Added some debugging output.
|
// Added some debugging output.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue