1
0
Fork 0

Fixes corresponding to slightly different terrafit output.

This commit is contained in:
curt 2003-08-22 19:13:02 +00:00
parent 38bb74f339
commit 7a4f52e98b

View file

@ -158,18 +158,14 @@ TGArray::parse( SGBucket& b ) {
// Parse/load the fitted data file
if ( fitted_in->is_open() ) {
int fitted_size;
double x, y, z, error;
double x, y, z;
*fitted_in >> fitted_size;
for ( int i = 0; i < fitted_size; ++i ) {
*fitted_in >> x >> y >> z;
if ( i < 4 ) {
// skip first 4 corner nodes
} else {
fitted_list.push_back( Point3D(x, y, z) );
cout << " loading fitted = " << Point3D(x, y, z) << endl;
}
}
}
return true;
}
@ -457,8 +453,8 @@ double TGArray::closest_nonvoid_elev( double lon, double lat ) const {
if ( dist < mindist && elev > -9000 ) {
mindist = dist;
minelev = elev;
cout << "dist = " << mindist;
cout << " elev = " << elev << endl;
// cout << "dist = " << mindist;
// cout << " elev = " << elev << endl;
}
}
}