chiark / gitweb /
new topology; check that graph and stuff makes sense
[moebius2.git] / primer.c
index 42c4019da42d425e3da33b1f672e04319d97bec4..3d9244a60f0b497a7cbe775b28ed2eebe1ed2de0 100644 (file)
--- a/primer.c
+++ b/primer.c
@@ -22,8 +22,8 @@ int main(int argc, const char **argv) {
 
     /* SGT's v runs 0..pi along the strip, where the join is at 0==pi.
      * So that corresponds to 0..X (since 0==X in our scheme). */
-    double v= x * M_PI / X;
-    
+    double v= (x*2 + (y&1)) * M_PI / (X*2);
+
     K printf("print %c%c( %-*.*g, %-*.*g);  # %03x %2d %2d\n",
             "+-+"[k], "xyz"[k],
             prec+5,prec,u, prec+5,prec,v,