diff --git a/Track.cpp b/Track.cpp index fa7f7ff..52a5056 100644 --- a/Track.cpp +++ b/Track.cpp @@ -167,14 +167,10 @@ void draw(const Track &track) // glColor3d(val, val, val); glColor3d(200, 200, 200); - glVertex3f(p.lat,// - track.min.lat, - p.ele,// - track.min.ele, - p.lon);// - track.min.lon); - static bool asdf = true; + glVertex3f(p.lat, + p.ele, + p.lon); } glEnd(); - - // usleep(100000); - glutPostRedisplay(); } diff --git a/main.cpp b/main.cpp index 5e342f6..66d66e5 100644 --- a/main.cpp +++ b/main.cpp @@ -244,11 +244,11 @@ int main(int argc, char *argv[]) << " " << track_group.first.min.lat << "-" << track_group.first.max.lat << std::endl; std::cout << " lon" - << " " << track_group.first.min.lat - << "-" << track_group.first.max.lat << std::endl; + << " " << track_group.first.min.lon + << "-" << track_group.first.max.lon << std::endl; std::cout << " ele" - << " " << track_group.first.min.lat - << "-" << track_group.first.max.lat << std::endl; + << " " << track_group.first.min.ele + << "-" << track_group.first.max.ele << std::endl; } std::cout << std::endl; @@ -299,15 +299,12 @@ int main(int argc, char *argv[]) { track.max.lat -= lat_diff; track.max.lon -= lon_diff; - // track.max.ele -= ele_diff; track.min.lat -= lat_diff; track.min.lon -= lon_diff; - // track.min.ele -= ele_diff; for(auto &p : track.points) { p.lat -= lat_diff; p.lon -= lon_diff; - // p.ele -= ele_diff; p.lat *= 500; p.lon *= 500;