1
0
Fork 0

Activate some additional debugging output for LogLevel = SG_DEBUG.

This commit is contained in:
curt 2005-12-19 15:55:47 +00:00
parent e444f54d6d
commit c1bec7b6c2

View file

@ -496,11 +496,12 @@ TGPolygon tgPolygonSplitLongEdges( const TGPolygon &poly, double max_len ) {
SG_LOG(SG_GENERAL, SG_DEBUG, "split_long_edges()"); SG_LOG(SG_GENERAL, SG_DEBUG, "split_long_edges()");
for ( i = 0; i < poly.contours(); ++i ) { for ( i = 0; i < poly.contours(); ++i ) {
// SG_LOG(SG_GENERAL, SG_DEBUG, "contour = " << i); SG_LOG(SG_GENERAL, SG_DEBUG, "contour = " << i);
for ( j = 0; j < poly.contour_size(i) - 1; ++j ) { for ( j = 0; j < poly.contour_size(i) - 1; ++j ) {
SG_LOG(SG_GENERAL, SG_DEBUG, "point = " << j);
p0 = poly.get_pt( i, j ); p0 = poly.get_pt( i, j );
p1 = poly.get_pt( i, j + 1 ); p1 = poly.get_pt( i, j + 1 );
// SG_LOG(SG_GENERAL, SG_DEBUG, " " << p0 << " - " << p1); SG_LOG(SG_GENERAL, SG_DEBUG, " " << p0 << " - " << p1);
if ( fabs(p0.y()) < (90.0 - SG_EPSILON) if ( fabs(p0.y()) < (90.0 - SG_EPSILON)
|| fabs(p1.y()) < (90.0 - SG_EPSILON) ) || fabs(p1.y()) < (90.0 - SG_EPSILON) )