chiark / gitweb /
sewing-table: Leg: commitid
[reprap-play.git] / sewing-table.scad.m4
index f54eca211f4a4734f264f886b3b96533ec212f26..7e4ec968c955402a927032576ee649aa69d1571f 100644 (file)
@@ -14,7 +14,7 @@ post_dia = 8;
 
 post_shorter = 1;
 
-$screw_dia = 3.168;
+$screw_dia = 3.2;
 screw_big_dia = 3.6;
 screw_big_len = 4.0;
 
@@ -763,6 +763,16 @@ module Leg(){ ////toplevel
                      + (!TEST ? 0.2 : -leg_midspc_dia/2),
                   $fn=30);
       }
+    cid_shear = (leg_fin_bot_w - leg_fin_top_w)/2 /
+                 (leg_height -leg_fin_bot_flat_z);
+    multmatrix([[ 1, 0, 0, leg_midspc_dia/2 ],
+                 [ 0, cid_shear,
+                         1, -leg_fin_bot_w/2 ],
+                 [ 0, 1, 0, -leg_height + leg_fin_bot_flat_z ],
+                 [ 0, 0, 0, 1 ]])
+      Commitid_BestCount([ leg_big_dia/2 - leg_midspc_dia/2,
+                            leg_height - leg_fin_bot_flat_z
+                             - leg_top_thick ]);
     if (!TEST)
       for (rot=[45: 360/leg_n_tubules : 359]) rotate(rot) {
          mirror([0,0,1]) translate([ leg_tubule_pos_rad, 0, -1])