chiark / gitweb /
filamentspool: wip numbers, prep for otherside (nfc as yet)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 9 Feb 2016 20:46:25 +0000 (20:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 9 Feb 2016 20:46:25 +0000 (20:46 +0000)
filamentspool.scad

index 68c2b4d..a53c11a 100644 (file)
@@ -277,27 +277,29 @@ module ArmEnd(length=armend_length){ ////toplevel
     }
   }
 
-  for (circum = [300:100:1500]) {
-    assign(rad = circum / tau)
-      assign(fn = str("filamentspool-number-n",circum,".dxf"))
-      assign(xlen = rad - real_exteffrad) {
-      echo(circum, rad, xlen);
-      if (xlen >= numbers_tick_width/2 &&
-         xlen <= length - numbers_height_allow)
-      translate([xlen, -armendwallthick,
-                -armendbasethick + (totalheight - numbers_tick_len)/2])
-       color("blue"){
-       translate([-numbers_tick_width/2, -1, 0])
-         cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]);
-       //  echo(fn);
-       translate([numbers_tick_width/2 + numbers_tick_linespc,
-                  1,
-                  numbers_tick_len])
-         rotate([90,0,0])
-         rotate([0,0,-90])
-         linear_extrude(height= numbers_relief+1)
-         //    scale(templatescale)
-         import(file=fn, convexity=100);
+  for (otherside=[0]) { // [0,1]
+    for (circum = [300:100:1500]) {
+      assign(rad = circum / tau)
+       assign(fn = str("filamentspool-number-n",circum,".dxf"))
+       assign(xlen = rad - real_exteffrad) {
+       echo(circum, rad, xlen);
+       if (xlen >= numbers_tick_width/2 &&
+           xlen <= length - numbers_height_allow)
+         translate([xlen, -armendwallthick,
+                    -armendbasethick + (totalheight - numbers_tick_len)/2])
+           color("blue"){
+           translate([-numbers_tick_width/2, -1, 0])
+             cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]);
+           //  echo(fn);
+           translate([numbers_tick_width/2 + numbers_tick_linespc,
+                      1,
+                      numbers_tick_len])
+             rotate([90,0,0])
+             rotate([0,0,-90])
+             linear_extrude(height= numbers_relief+1)
+             //    scale(templatescale)
+             import(file=fn, convexity=100);
+         }
       }
     }
   }