]> git.mxchange.org Git - flightgear.git/blob - FixNode/fixnode.hxx
Build Triangle as a lib rather than as a program.
[flightgear.git] / FixNode / fixnode.hxx
1 // fixnode.hxx -- traverse the node file and fix the elevation of all the new
2 //                interpolated points.
3 //
4 // Written by Curtis Olson, started November 1997.
5 //
6 // Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 //
22 // $Id$
23 // (Log is kept at end of this file)
24 //
25
26
27 #ifndef _FIXNODE_H
28 #define _FIXNODE_H
29
30
31 #include <stdio.h>
32 #include <string.h>
33 #include <string>
34
35 #include <vector>
36 #include "Include/fg_stl_config.h"
37
38 #ifdef NEEDNAMESPACESTD
39 using namespace std;
40 #endif
41
42 #include <DEM/dem.hxx>
43 #include <Math/point3d.hxx>
44
45
46 typedef vector < Point3D > container;
47 typedef container::iterator iterator;
48 typedef container::const_iterator const_iterator;
49
50
51 // Initialize a new mesh structure
52 void load_nodes(const string& basename, container& node_list);
53
54
55 // load the extra nodes.  These are always the first n nodes of the
56 // .node file.  (???  These will be tagged with a code indicating what
57 // needs to be done with this node's elevation such as adjust to local
58 // DEM elevation, or massage the local DEM points to match this
59 // elevation point. ???)
60 void load_extra_nodes(const string& filename, container& node_list);
61
62
63 // fix the node elevations
64 void fix_nodes( const string& basename, fgDEM& dem, container& node_list );
65
66
67 #endif // _FIXNODE_H
68
69
70 // $Log$
71 // Revision 1.4  1998/10/20 15:49:23  curt
72 // Converted to Point3D class.
73 //
74 // Revision 1.3  1998/09/19 20:43:53  curt
75 // C++-ified and STL-ified the code.  Combined triload.* and fixnode.* into
76 // a single file.
77 //
78 // Revision 1.2  1998/07/22 21:46:41  curt
79 // Fixed a bug that was triggering a seg fault.
80 //
81 // Revision 1.1  1998/04/08 23:05:56  curt
82 // Adopted Gnu automake/autoconf system.
83 //
84 // Revision 1.4  1998/03/19 02:50:19  curt
85 // Updated to support -lDEM class.
86 //
87 // Revision 1.3  1998/03/03 16:00:58  curt
88 // More c++ compile tweaks.
89 //
90 // Revision 1.2  1997/12/02 13:12:07  curt
91 // Updated to fix every node.
92 //
93 // Revision 1.1  1997/11/27 00:17:33  curt
94 // Initial revision.
95 //