]> git.mxchange.org Git - flightgear.git/blobdiff - SplitTris/splittris.hxx
C++-ified, STL-ified, and string-ified.
[flightgear.git] / SplitTris / splittris.hxx
index 011109754a0c065d584b3acbed2e8cff8499df27..9a4e058e8c2189b505de7d93c2586c33d2a4125a 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
+#include <string>
 
+#include <vector>
+#include "Include/fg_stl_config.h"
 
-#define MAX_NODES 200000
-#define MAX_TRIS  400000
+#ifdef NEEDNAMESPACESTD
+using namespace std;
+#endif
 
+#include <Include/fg_types.h>
 
-extern int nodecount, tricount;
+
+// A triangle (indices of the three nodes)
+typedef struct {
+    int n1, n2, n3;
+} triangle;
+
+
+typedef vector < fgPoint3d > container_3d;
+typedef container_3d::iterator iterator_3d;
+typedef container_3d::const_iterator const_iterator_3d;
+
+typedef vector < triangle > container_tri;
+typedef container_tri::iterator iterator_tri;
+typedef container_tri::const_iterator const_iterator_tri;
 
 
 // Initialize a new mesh structure
-void triload(char *basename);
+void triload(const string& basename);
 
 
 #endif // SPLITTRIS_HXX
 
 
 // $Log$
+// Revision 1.3  1998/09/22 23:49:58  curt
+// C++-ified, STL-ified, and string-ified.
+//
 // Revision 1.2  1998/09/21 23:16:24  curt
 // Converted to c++ style comments.
 //