2 * Generates the repetitive part of the gnuplot input
3 * for generating the initial triangle vertices from SGT's
10 int main(int argc, const char **argv) {
13 if (argc>1) { fputs("no args please\n",stderr); exit(8); }
15 printf("print %d, %d, %d, %d, %d\n", DIM, N, X, Y, D3);
18 int x= v & XMASK; /* distance along strip */
19 int y= v >> YSHIFT; /* distance across strip */
20 double u= y * 1.0 / (Y-1);
21 double v= x * M_PI / (X-1); /* SGT's u runs 0..pi along the strip */
22 K printf("print %c%c(%.*g,%.*g)\n",
25 DBL_DIG+2,u, DBL_DIG+2,v);