]> git.mxchange.org Git - flightgear.git/blobdiff - GenAirports/main.cxx
Beginning of convex hull genereration routine.
[flightgear.git] / GenAirports / main.cxx
index fa5464c5654bbaca04b5566cfe7432104ba15135..9a42f9021d7ccefda0bb08ebf3f5f2979e285258 100644 (file)
@@ -41,6 +41,7 @@
 #include <Include/fg_zlib.h>
 
 #include "area.hxx"
+#include "convex_hull.hxx"
 
 
 // process and airport + runway list
@@ -84,12 +85,12 @@ void process_airport( string last_airport, list < string > & runway_list ) {
     last = apt_list.end();
     while ( current != last ) {
        // printf( "(%.4f, %.4f)\n", 
-       printf( "%.5f %.5f\n", 
-               current->lon * RAD_TO_DEG,
-               current->lat * RAD_TO_DEG );
+       printf( "%.5f %.5f\n", current->lon, current->lat );
        current++;
     }
     printf("\n");
+
+    convex_hull(apt_list);
 }