From: curt Date: Wed, 10 Mar 1999 16:09:44 +0000 (+0000) Subject: Hacking towards the first working version. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=14888bd09fe53d3490cc9a57c3d0744f5c09b994;p=flightgear.git Hacking towards the first working version. --- diff --git a/DemChop/demchop.cxx b/DemChop/demchop.cxx index b311c7fcc..5a1b66dc6 100644 --- a/DemChop/demchop.cxx +++ b/DemChop/demchop.cxx @@ -31,6 +31,8 @@ #include #include +#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 index 000000000..e4df44488 --- /dev/null +++ b/DemChop/point2d.hxx @@ -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 + + +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. +// +//