- * So that corresponds to 0..X (since 0==X in our scheme). */
- double v= x * M_PI / X;
-
- K printf("print %c%c( %-*.*g, %-*.*g); # %03x %2d %2d\n",
- "+-+"[k], "xyz"[k],
- prec+5,prec,u, prec+5,prec,v,
- vi, x, y);
+ * So that corresponds to 0..X (since 0==X in our scheme).
+ * Vertices with odd y coordinate are halfway to the next x coordinate.
+ */
+ double v= (x*2 + (y&1)) * 1.0 / (X*2);
+ v += 0.5;
+ v *= M_PI;
+
+ printf("%-*.*g %-*.*g # %03x %2d %2d\n",
+ prec+5,prec,u, prec+5,prec,v,
+ vi, x, y);