1 // fixnode.hxx -- traverse the node file and fix the elevation of all the new
2 // interpolated points.
4 // Written by Curtis Olson, started November 1997.
6 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
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.
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.
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.
23 // (Log is kept at end of this file)
36 #include "Include/fg_stl_config.h"
38 #ifdef NEEDNAMESPACESTD
42 #include <DEM/dem.hxx>
43 #include <Include/fg_types.h>
46 typedef vector < fgPoint3d > container;
47 typedef container::iterator iterator;
48 typedef container::const_iterator const_iterator;
51 // Initialize a new mesh structure
52 void load_nodes(const string& basename, container& node_list);
55 // load the node information
56 void fix_nodes( const string& basename, fgDEM& dem, container& node_list );
63 // Revision 1.3 1998/09/19 20:43:53 curt
64 // C++-ified and STL-ified the code. Combined triload.* and fixnode.* into
67 // Revision 1.2 1998/07/22 21:46:41 curt
68 // Fixed a bug that was triggering a seg fault.
70 // Revision 1.1 1998/04/08 23:05:56 curt
71 // Adopted Gnu automake/autoconf system.
73 // Revision 1.4 1998/03/19 02:50:19 curt
74 // Updated to support -lDEM class.
76 // Revision 1.3 1998/03/03 16:00:58 curt
77 // More c++ compile tweaks.
79 // Revision 1.2 1997/12/02 13:12:07 curt
80 // Updated to fix every node.
82 // Revision 1.1 1997/11/27 00:17:33 curt