int nodecount = 0;
-double nodes[MAX_NODES][3];
+static double nodes[MAX_NODES][3];
struct fgBUCKET my_index;
/* $Log$
-/* Revision 1.4 1998/01/31 00:41:23 curt
-/* Made a few changes converting floats to doubles.
+/* Revision 1.5 1998/03/03 16:00:52 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.4 1998/01/31 00:41:23 curt
+ * Made a few changes converting floats to doubles.
+ *
* Revision 1.3 1998/01/27 18:37:00 curt
* Lots of updates to get back in sync with changes made over in .../Src/
*
/* load the node information */
-void fixnodes(char *filename, struct MESH *m) {
+void fixnodes(char *filename, struct MESH *m, double nodes[MAX_NODES][3]) {
char toname[256];
FILE *fd;
int i;
/* $Log$
-/* Revision 1.3 1998/01/09 23:03:08 curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.4 1998/03/03 16:00:57 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.3 1998/01/09 23:03:08 curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
* Revision 1.2 1997/12/02 13:12:07 curt
* Updated to fix every node.
*
#include <stdio.h>
#include <string.h>
-/* #include "fixnode.h" */
+#include "triload.h"
#include "../Dem2node/mesh.h"
/* load the node information */
-void fixnodes(char *basename, struct MESH *m);
+void fixnodes(char *basename, struct MESH *m, double nodes[MAX_NODES][3]);
#endif /* FIXNODE_H */
/* $Log$
-/* Revision 1.2 1997/12/02 13:12:07 curt
-/* Updated to fix every node.
+/* Revision 1.3 1998/03/03 16:00:58 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.2 1997/12/02 13:12:07 curt
+ * Updated to fix every node.
+ *
* Revision 1.1 1997/11/27 00:17:33 curt
* Initial revision.
*
/* Original DEM which is used to interpolate z values */
-struct MESH dem_mesh;
+static struct MESH dem_mesh;
+/* Node list */
+static double nodes[MAX_NODES][3];
/* find all the matching files in the specified directory and fix them */
void process_files(char *root_path) {
printf("File = %s\n", file_path);
/* load the input data files */
- triload(file_path);
+ triload(file_path, nodes);
- fixnodes(file_path, &dem_mesh);
+ fixnodes(file_path, &dem_mesh, nodes);
}
}
}
/* $Log$
-/* Revision 1.3 1998/01/09 23:03:08 curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.4 1998/03/03 16:00:58 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.3 1998/01/09 23:03:08 curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
* Revision 1.2 1997/12/02 13:12:07 curt
* Updated to fix every node.
*
int nodecount;
-double nodes[MAX_NODES][3];
/* load the node information */
-void triload(char *filename) {
+void triload(char *filename, double nodes[MAX_NODES][3]) {
FILE *node;
int dim, junk1, junk2;
int i;
/* $Log$
-/* Revision 1.2 1998/01/09 23:03:09 curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.3 1998/03/03 16:00:59 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.2 1998/01/09 23:03:09 curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
* Revision 1.1 1997/11/27 00:17:35 curt
* Initial revision.
*
extern int nodecount, tricount;
-double nodes[MAX_NODES][3];
/* Initialize a new mesh structure */
-void triload(char *basename);
+void triload(char *basename, double nodes[MAX_NODES][3]);
#endif /* TRILOAD_H */
/* $Log$
-/* Revision 1.2 1998/01/09 23:03:09 curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.3 1998/03/03 16:00:59 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.2 1998/01/09 23:03:09 curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
* Revision 1.1 1997/11/27 00:17:35 curt
* Initial revision.
*
int nodecount, tricount;
int normalcount = 0;
-struct fgCartesianPoint nodes[MAX_NODES];
-int tris[MAX_TRIS][3];
-int new_tris[MAX_TRIS][3];
+static struct fgCartesianPoint nodes[MAX_NODES];
+static int tris[MAX_TRIS][3];
-double normals[MAX_NODES][3];
+static double normals[MAX_NODES][3];
struct fgBUCKET my_index;
struct fgBUCKET ne_index, nw_index, sw_index, se_index;
/* $Log$
-/* Revision 1.10 1998/01/31 00:41:27 curt
-/* Made a few changes converting floats to doubles.
+/* Revision 1.11 1998/03/03 16:01:00 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.10 1998/01/31 00:41:27 curt
+ * Made a few changes converting floats to doubles.
+ *
* Revision 1.9 1998/01/27 18:37:04 curt
* Lots of updates to get back in sync with changes made over in .../Src/
*
#define MAX_TRIS 400000
-extern int nodecount, tricount;
-extern struct fgCartesianPoint nodes[MAX_NODES];
-extern int tris[MAX_TRIS][3];
-extern int new_tris[MAX_TRIS][3];
-
-
/* Initialize a new mesh structure */
void triload(char *basename, char *basepath);
/* $Log$
-/* Revision 1.4 1998/01/17 01:25:40 curt
-/* Added support for shared normals.
+/* Revision 1.5 1998/03/03 16:01:00 curt
+/* More c++ compile tweaks.
/*
+ * Revision 1.4 1998/01/17 01:25:40 curt
+ * Added support for shared normals.
+ *
* Revision 1.3 1997/11/15 18:05:06 curt
* minor tweaks ...
*