// 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
}
// 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();
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);
}
// $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