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

index 95e03d52e33f103fa238ae3472c3b4cef6700787..14b83b97899f45b39240598fab591b21e89b7fcb 100644 (file)
@@ -7,6 +7,7 @@ test_edge = interlock_dia * 0.5 + interlock_fine + 2;
 leg_n_fins = 2;
 
 leg_top_thick = 3;
+leg_bot_thick = 4;
 leg_top_flat_z = 0.5;
 leg_fin_top_w = 2;
 leg_fin_bot_w = 3;
index 91d4de9f58d6884f1a454a1683004b9b5059f292..9196f580ee9c1afca8f58b5ee3b7b9e730befbbc 100644 (file)
@@ -724,9 +724,16 @@ module Leg(){ ////toplevel
               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,
-              $fn=30);
+      hull(){
+        cylinder(r= (!TEST ? leg_midspc_dia/2 : 0.1),
+                h= leg_height - leg_top_thick - leg_bot_thick + 0.2,
+                $fn=30);
+       if (TEST)
+         cylinder(r= leg_midspc_dia/2,
+                  h= leg_height - leg_top_thick - leg_bot_thick
+                     + (!TEST ? 0.2 : -leg_midspc_dia/2),
+                  $fn=30);
+      }
     for (rot=[45: 360/leg_n_tubules : 359]) rotate(rot) {
        mirror([0,0,1]) translate([ leg_tubule_pos_rad, 0, -1])
          cylinder(r= leg_tubule_dia/2, h=leg_height+2, $fn=20);