#include <Include/compiler.h>
-#include STL_STRING
-
#ifdef FG_HAVE_STD_INCLUDES
+# include <cmath>
# include <cstdio> // sprintf()
# include <iostream>
#else
+# include <math.h>
# include <stdio.h> // sprintf()
# include <iostream.h>
#endif
+#include STL_STRING
+
FG_USING_STD(string);
#if ! defined( FG_HAVE_NATIVE_SGI_COMPILERS )
FG_USING_STD(ostream);
#endif
-#ifdef __MWERKS__
-#include <math.h>
-#include <stdio.h>
-#endif
-
#include <Include/fg_constants.h>
# include <config.h>
#endif
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
#include <Include/compiler.h>
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#include STL_STRING
#include <Aircraft/aircraft.hxx>
# include <config.h>
#endif
+#include <Include/compiler.h>
+
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
-#include <Include/compiler.h>
-
#include <GL/glut.h>
#include <XGL/xgl.h>
# include <config.h>
#endif
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#ifdef HAVE_WINDOWS_H
# include <windows.h>
# include <float.h>
# include <config.h>
#endif
+// For BC 5.01 this must be included before OpenGL includes.
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#include <GL/glut.h>
#include <XGL/xgl.h>
#include <Include/compiler.h>
#ifdef FG_HAVE_STD_INCLUDES
+# include <cmath>
# include <cstdlib> // atoi()
#else
+# include <math.h>
# include <stdlib.h> // atoi()
#endif
# include <config.h>
#endif
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
# include <config.h>
#endif
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
#include <Include/compiler.h>
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#include STL_FUNCTIONAL
#include STL_ALGORITHM
# include <config.h>
#endif
-#include <string>
-
#include "Include/compiler.h"
+#ifdef FG_MATH_EXCEPTION_CLASH
+# include <math.h>
+#endif
+
#include STL_ALGORITHM
#include STL_FUNCTIONAL
+#include STL_STRING
#ifdef FG_HAVE_STD_INCLUDES
# include <cstdio>
FG_USING_STD(for_each);
FG_USING_STD(mem_fun);
+FG_USING_STD(string);
fgEVENT_MGR global_events;
FGBucket tmp1( 0.0, 0.0 );
double dy = tmp1.get_height();
-
- lat = -90.0 + dy * 0.5;
+ lat = 44.25 + dy * 0.5;
+
+ bool start_lon = true;
+ lon = -85.75 + (1.0/16.0);
+
while ( lat <= 90.0 ) {
FGBucket tmp2( 0.0, lat );
double dx = tmp2.get_width();
- lon = -180 + dx * 0.5;
+ if ( ! start_lon ) {
+ lon = -180 + dx * 0.5;
+ } else {
+ start_lon = false;
+ }
while ( lon <= 180.0 ) {
FGBucket b( lon, lat );
cout << "Bucket = " << b << endl;
vorout.normlist = (REAL *) NULL; // Needed only if -v switch used.
// TEMPORARY
- // write_out_data(&in);
+ write_out_data(&in);
// Triangulate the points. Switches are chosen to read and write
// a PSLG (p), preserve the convex hull (c), number everything