chiark / gitweb /
filamentspool: 3mm: Hub non-dove version prep (nfc if dove)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 14 Dec 2015 00:59:50 +0000 (00:59 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 14 Dec 2015 00:59:50 +0000 (00:59 +0000)
filamentspool.scad

index 05b5392..40e893d 100644 (file)
@@ -252,13 +252,16 @@ module Hub(){ ////toplevel
       for (ang=[0,120,240])
        rotate([0,0,ang]) {
          difference() {
-           translate([hubeffrad,0,0])
-             DoveClipPairSane(h=doveclipheight,
-                              baseextend = (hubeffrad - DoveClip_depth()
-                                            - hubbigrad + hublwidth));
-           if (hole>hublwidth && holewidth > 2) {
-             translate([hubbigrad + hublwidth, -holewidth/2, -1])
-               cube([hole, holewidth, hublthick+2]);
+           if (usedove()){
+             translate([hubeffrad,0,0])
+               DoveClipPairSane(h=doveclipheight,
+                                baseextend = (hubeffrad - DoveClip_depth()
+                                              - hubbigrad + hublwidth));
+             if (hole>hublwidth && holewidth > 2) {
+               translate([hubbigrad + hublwidth, -holewidth/2, -1])
+                 cube([hole, holewidth, hublthick+2]);
+             }
+           } else {
            }
          }
        }