]> git.mxchange.org Git - flightgear.git/blob - SplitTris/splittris.hxx
Point3D tweaks.
[flightgear.git] / SplitTris / splittris.hxx
1 // splittris.hxx -- read in a .ele/.node file pair generated by the triangle 
2 //                  program and output edge vertices w/ normals.
3 //
4 // Written by Curtis Olson, started January 1998.
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 SPLITTRIS_HXX
28 #define SPLITTRIS_HXX
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 <Math/point3d.hxx>
43
44
45 // A triangle (indices of the three nodes)
46 typedef struct {
47     int n1, n2, n3;
48 } triangle;
49
50
51 typedef vector < Point3D > container_3d;
52 typedef container_3d::iterator iterator_3d;
53 typedef container_3d::const_iterator const_iterator_3d;
54
55 typedef vector < triangle > container_tri;
56 typedef container_tri::iterator iterator_tri;
57 typedef container_tri::const_iterator const_iterator_tri;
58
59
60 // Initialize a new mesh structure
61 void triload(const string& basename);
62
63
64 #endif // SPLITTRIS_HXX
65
66
67 // $Log$
68 // Revision 1.4  1998/10/18 01:17:28  curt
69 // Point3D tweaks.
70 //
71 // Revision 1.3  1998/09/22 23:49:58  curt
72 // C++-ified, STL-ified, and string-ified.
73 //
74 // Revision 1.2  1998/09/21 23:16:24  curt
75 // Converted to c++ style comments.
76 //
77 // Revision 1.1  1998/07/08 14:59:14  curt
78 // *.[ch] renamed to *.[ch]xx
79 //
80 // Revision 1.3  1998/03/03 15:36:13  curt
81 // Tweaks for compiling with g++
82 //
83 // Revision 1.2  1998/01/15 02:49:25  curt
84 // Misc. housekeeping.
85 //
86 // Revision 1.1  1998/01/14 02:11:32  curt
87 // Initial revision.
88 //
89