diff options
Diffstat (limited to 'labb3/tsp/src/tsp.cpp')
| -rw-r--r-- | labb3/tsp/src/tsp.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/labb3/tsp/src/tsp.cpp b/labb3/tsp/src/tsp.cpp index 57de067..975e657 100644 --- a/labb3/tsp/src/tsp.cpp +++ b/labb3/tsp/src/tsp.cpp @@ -53,10 +53,11 @@ int main(int argc, char *argv[]) { Point p(x, y); tour.insertSmallest(p); // uncomment the 4 lines below to animate - // tour.draw(scene); - // std::chrono::milliseconds dura(50); - // std::this_thread::sleep_for(dura); - // a.processEvents(); + tour.draw(scene); + std::chrono::milliseconds dura(50); + std::this_thread::sleep_for(dura); + a.processEvents(); + scene->clear(); } input.close(); @@ -64,7 +65,7 @@ int main(int argc, char *argv[]) { cout << "Tour distance: " << std::fixed << std::setprecision(4) << std::showpoint << tour.distance() << endl; cout << "Number of points: " << tour.size() << endl; - tour.show(); + //tour.show(); // draw tour tour.draw(scene); |
