1 // triangle.hxx -- "Triangle" interface class
3 // Written by Curtis Olson, started March 1999.
5 // Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 // (Log is kept at end of this file)
30 # error This library requires C++
34 #include <Include/compiler.h>
38 #include <Clipper/clipper.hxx>
39 #include <Math/point3d.hxx>
40 #include <Polygon/names.hxx>
44 #include <Triangle/triangle.h>
47 #include "trinodes.hxx"
48 #include "tripoly.hxx"
53 typedef vector < FGTriPoly > tripoly_list;
54 typedef tripoly_list::iterator tripoly_list_iterator;
55 typedef tripoly_list::const_iterator const_tripoly_list_iterator;
63 tripoly_list polylist[FG_MAX_AREA_TYPES];
67 // Constructor and destructor
71 // add nodes from the dem fit
74 // populate this class based on the specified gpc_polys list
75 int build( const FGgpcPolyList& gpc_polys );
77 // do actual triangulation
78 int do_triangulate( const FGTriPoly& poly );
80 // front end triangulator for polygon list
85 #endif // _TRIANGLE_HXX
89 // Revision 1.5 1999/03/20 02:21:53 curt
90 // Continue shaping the code towards triangulation bliss. Added code to
91 // calculate some point guaranteed to be inside a polygon.
93 // Revision 1.4 1999/03/19 22:29:05 curt
94 // Working on preparationsn for triangulation.
96 // Revision 1.3 1999/03/19 00:27:11 curt
97 // Continued work on triangulation preparation.
99 // Revision 1.2 1999/03/18 04:31:12 curt
100 // Let's not pass copies of huge structures on the stack ... ye might see a
103 // Revision 1.1 1999/03/17 23:51:59 curt