chiark / gitweb /
filamentspool: Move ArmEnd commitid to outside
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 10 Feb 2016 01:41:09 +0000 (01:41 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 10 Feb 2016 01:41:17 +0000 (01:41 +0000)
So letters aren't affected by backs of teeth

filamentspool.scad

index 73daad1187f37eb1526e25c322612ce83210111c..0a80d02bcc80ffc8e5132ca2632106d12fb03385 100644 (file)
@@ -320,30 +320,33 @@ module ArmEnd(length=armend_length){ ////toplevel
   }
 
   difference(){
   }
 
   difference(){
-    translate([0, -armendwallthick, -armendbasethick])
-      cube([length, totalwidth, totalheight]);
-    translate([-1, 0, 0])
-      cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
-    translate([-1, 0, ratchettoothheight])
-      cube([length+2, channelwidth, channeldepth+1]);
-
+    union(){
+      difference(){
+       translate([0, -armendwallthick, -armendbasethick])
+         cube([length, totalwidth, totalheight]);
+       translate([-1, 0, 0])
+         cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
+       translate([-1, 0, ratchettoothheight])
+         cube([length+2, channelwidth, channeldepth+1]);
+      }
+      for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
+       translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
+         rotate([90,0,0])
+           cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
+         multmatrix([  [       1, 0, ratchettoothslope, 0      ],
+                           [   0,      1,      0,      0       ],
+                           [   0,      0,      1,      0       ],
+                           [   0,      0,      0,      1       ]])
+           cube([ratchettooth - ratchettoothsmoothr*2,
+                 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
+       }
+      }
+    }
     if (usedove()){
       translate([0,0, -armendbasethick])
        Commitid_BestCount_M([length/3, totalwidth]);
     }
   }
     if (usedove()){
       translate([0,0, -armendbasethick])
        Commitid_BestCount_M([length/3, totalwidth]);
     }
   }
-  for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
-    translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
-      rotate([90,0,0])
-       cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
-      multmatrix([     [       1, 0, ratchettoothslope, 0      ],
-                       [       0,      1,      0,      0       ],
-                       [       0,      0,      1,      0       ],
-                       [       0,      0,      0,      1       ]])
-       cube([ratchettooth - ratchettoothsmoothr*2,
-             channelwidth, ratchettoothheight - ratchettoothsmoothr]);
-    }
-  }
 }
 
 module FilamentCupHandle(){
 }
 
 module FilamentCupHandle(){