chiark / gitweb /
sewing-table: Leg: wip new test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 17 Jun 2017 09:34:29 +0000 (10:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 17 Jun 2017 09:34:29 +0000 (10:34 +0100)
sewing-table.scad.m4

index 1d476e5..91d4de9 100644 (file)
@@ -702,8 +702,9 @@ module Leg(){ ////toplevel
        translate([0,0, -leg_top_thick])
          cylinder(r= leg_bot_dia/2, height=1, $fn=100);
       }
-      translate([0,0,-leg_height])
-       cylinder(r= leg_bot_mid_dia/2, h=leg_bot_thick);
+      if (!TEST)
+       translate([0,0,-leg_height])
+         cylinder(r= leg_bot_mid_dia/2, h=leg_bot_thick);
       for (rot=[0: 360/leg_n_fins : 359]) rotate(rot) {
          hull(){
            mirror([0,0,1]) translate([0, -leg_fin_top_w/2, 0])
@@ -719,7 +720,9 @@ module Leg(){ ////toplevel
        }
     }
     mirror([0,0,1]) translate([0,0,-1])
-      cylinder(r= leg_hole_dia/2, h=leg_height+2, $fn=30);
+      cylinder(r= leg_hole_dia/2,
+              h= (!TEST ? leg_height+2 : leg_height/2),
+              $fn=30);
     mirror([0,0,1]) translate([0,0,leg_top_thick - 0.1])
       cylinder(r= leg_midspc_dia/2,
               h=leg_height - leg_top_thick - leg_bot_thick + 0.2,