]> git.mxchange.org Git - flightgear.git/blobdiff - GenAirports/convex_hull.cxx
Modified to adhere to new polygon naming convention, and also to read the
[flightgear.git] / GenAirports / convex_hull.cxx
index aaa2f499e8fb9e0353ce88187c7b8f53f97cb7af..0cdff1dcb3f5b242a072ebccd7f4e303d20dcc0d 100644 (file)
@@ -178,8 +178,8 @@ list_container convex_hull( list_container input_list )
     // double check list size ... this should never fail because a
     // single runway will always generate four points.
     if ( radians_map.size() < 3 ) {
-       // printf("convex hull not possible with < 3 points\n");
-       exit(0);
+       cout << "convex hull not possible with < 3 points" << endl;
+       exit(-1);
     }
 
     // ensure that we run the while loop at least once
@@ -235,7 +235,7 @@ list_container convex_hull( list_container input_list )
     }
 
     // translate back to correct lon/lat
-    printf("Final sorted convex hull\n");
+    // printf("Final sorted convex hull\n");
     con_hull.erase( con_hull.begin(), con_hull.end() );
     map_current = radians_map.begin();
     map_last = radians_map.end();
@@ -246,7 +246,7 @@ list_container convex_hull( list_container input_list )
        result.x = cos(p.theta) * p.dist + average.x;
        result.y = sin(p.theta) * p.dist + average.y;
 
-       printf("%.6f %.6f\n", result.x, result.y);
+       // printf("%.6f %.6f\n", result.x, result.y);
 
        con_hull.push_back(result);
     }
@@ -256,6 +256,13 @@ list_container convex_hull( list_container input_list )
 
 
 // $Log$
+// Revision 1.5  1999/02/25 21:32:48  curt
+// Modified to adhere to new polygon naming convention, and also to read the
+// new Robin Peel aiport format.
+//
+// Revision 1.4  1998/09/17 18:40:42  curt
+// Debug message tweaks.
+//
 // Revision 1.3  1998/09/09 20:59:55  curt
 // Loop construct tweaks for STL usage.
 // Output airport file to be used to generate airport scenery on the fly