chiark / gitweb /
filamentspool: commitid on hub now works
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 9 Feb 2016 22:23:13 +0000 (22:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 9 Feb 2016 22:23:13 +0000 (22:23 +0000)
filamentspool.scad

index 195284d..b640a85 100644 (file)
@@ -519,14 +519,15 @@ module Hub(){ ////toplevel
     }
     translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
 
-    translate([hubbigrad - hublwidth,
-              -DoveClipPairSane_width()/2,
-              0])
-      Commitid_BestCount_M([(usedove()
-                             ? hubeffrad - DoveClip_depth()
-                             : hubeffrad)-
-                            (hubbigrad - hublwidth),
-                            DoveClipPairSane_width()]);
+    rotate([0,0, selsz(0,0,45)])
+      translate([axlerad+hublwidth,
+                -hublwidth/2,
+                0])
+      rotate([90,0,0])
+      Commitid_BestCount([(hubbigrad-hublwidth) - (axlerad+hublwidth),
+                         hublthick +
+                         hublwidth/2 * hubaxlelen/(hubbigrad-axlerad),
+                         ]);
   }
 }