/* make_spiral_635.c write out a spiral_635.dat for run6 */ /* spiral trough X and Y -8 to 8, Z about -0.5 to 8.8 */ #include #include #define LINES 258 /* storage max for nx */ #define POINTS 258 /* storage max for ny */ #define TRIS 66000 /* storage max for points */ static double spiral(double x, double y); /* z = */ int main(int argc, char *argv[]) { struct point { float x, y, z; int index; }; struct point raw[LINES][POINTS]; struct tri_poly { int p1, p2, p3; }; struct tri_poly tri_raw[TRIS]; FILE *fp; int i, j; int points, polys; double x, y, z; float x0 = -8.0; float dx = 0.5; int nx = 33; float y0 = -8.0; float dy = 0.5; float ny = 33; printf("make_spiral_635 running \n"); points = 1; /* thats the standard */ x = x0 - dx; for(i=0; i