]> git.mxchange.org Git - flightgear.git/commitdiff
Hacking towards the first working version.
authorcurt <curt>
Wed, 10 Mar 1999 16:09:44 +0000 (16:09 +0000)
committercurt <curt>
Wed, 10 Mar 1999 16:09:44 +0000 (16:09 +0000)
DemChop/demchop.cxx
DemChop/point2d.hxx [new file with mode: 0644]

index b311c7fcc5389b808a639b8cd0951a68ee33cdfd..5a1b66dc6b2b320889e322db2c2fa9831bf57845 100644 (file)
@@ -31,6 +31,8 @@
 #include <Bucket/newbucket.hxx>
 #include <DEM/dem.hxx>
 
+#include "point2d.hxx"
+
 FG_USING_STD(string);
 
 
@@ -88,11 +90,7 @@ int main(int argc, char **argv) {
        for ( j = 0; j <= dy; j++ ) {
            for ( i = 0; i <= dx; i++ ) {
                b_cur = fgBucketOffset(min.x, min.y, i, j);
-               if ( b_cur == b ) {
-                   dem.write_area( b_cur );
-               } else {
-                   dem.write_area( b_cur );
-               }
+               dem.write_area( b_cur );
            }
        }
     }
@@ -102,6 +100,9 @@ int main(int argc, char **argv) {
 
 
 // $Log$
+// Revision 1.2  1999/03/10 16:09:44  curt
+// Hacking towards the first working version.
+//
 // Revision 1.1  1999/03/10 01:02:54  curt
 // Initial revision.
 //
diff --git a/DemChop/point2d.hxx b/DemChop/point2d.hxx
new file mode 100644 (file)
index 0000000..e4df444
--- /dev/null
@@ -0,0 +1,62 @@
+// point2d.hxx -- define a 2d point class
+//
+// Written by Curtis Olson, started February 1998.
+//
+// Copyright (C) 1998  Curtis L. Olson  - curt@me.umn.edu
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//
+// $Id$
+// (Log is kept at end of this file)
+//
+
+
+#ifndef _POINT2D_HXX
+#define _POINT2D_HXX
+
+
+#include <list>
+
+
+class point2d {
+public:
+    union {
+       double x;
+       double dist;
+       double lon;
+    };
+    union {
+       double y;
+       double theta;
+       double lat;
+    };
+};
+
+
+// convert a point from cartesian to polar coordinates
+point2d cart_to_polar_2d(point2d in);
+
+
+#endif // _POINT2D_HXX
+
+
+// $Log$
+// Revision 1.1  1999/03/10 16:09:45  curt
+// Hacking towards the first working version.
+//
+// Revision 1.1  1998/09/04 23:04:53  curt
+// Beginning of convex hull genereration routine.
+//
+//