Eliminate some debugging output.
Fix some warnings.
This commit is contained in:
parent
cffdd093ea
commit
bd02f2548c
3 changed files with 6 additions and 6 deletions
|
@ -163,7 +163,7 @@ TGArray::parse( SGBucket& b ) {
|
|||
for ( int i = 0; i < fitted_size; ++i ) {
|
||||
*fitted_in >> x >> y >> z;
|
||||
fitted_list.push_back( Point3D(x, y, z) );
|
||||
cout << " loading fitted = " << Point3D(x, y, z) << endl;
|
||||
// cout << " loading fitted = " << Point3D(x, y, z) << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1233,7 +1233,7 @@ static point_list remove_contour_cycles( const point_list& contour ) {
|
|||
if ( contour[i] == contour[j] && i + 2 > j ) {
|
||||
cout << "detected a small cycle: i = "
|
||||
<< i << " j = " << j << endl;
|
||||
for ( int k = i; k <= j; ++k ) {
|
||||
for ( unsigned int k = i; k <= j; ++k ) {
|
||||
cout << " " << contour[k] << endl;
|
||||
}
|
||||
// i = j;
|
||||
|
|
|
@ -73,8 +73,8 @@ void TGPolygon::inherit_elevations( const TGPolygon &source ) {
|
|||
// traverse the dest polygon and build a mirror image but with
|
||||
// elevations from the source polygon
|
||||
|
||||
for ( i = 0; i < poly.size(); ++i ) {
|
||||
for ( j = 0; j < poly[i].size(); ++j ) {
|
||||
for ( i = 0; i < (int)poly.size(); ++i ) {
|
||||
for ( j = 0; j < (int)poly[i].size(); ++j ) {
|
||||
Point3D p = poly[i][j];
|
||||
int index = nodes.find( p );
|
||||
if ( index >= 0 ) {
|
||||
|
@ -89,10 +89,10 @@ void TGPolygon::inherit_elevations( const TGPolygon &source ) {
|
|||
// weren't in the original.)
|
||||
|
||||
double last = -9999.0;
|
||||
for ( i = 0; i < poly.size(); ++i ) {
|
||||
for ( i = 0; i < (int)poly.size(); ++i ) {
|
||||
// go front ways
|
||||
last = -9999.0;
|
||||
for ( j = 0; j < poly[i].size(); ++j ) {
|
||||
for ( j = 0; j < (int)poly[i].size(); ++j ) {
|
||||
Point3D p = poly[i][j];
|
||||
if ( p.z() > -9000 ) {
|
||||
last = p.z();
|
||||
|
|
Loading…
Add table
Reference in a new issue