chiark / gitweb /
fairphone-case: make catch catchier
[reprap-play.git] / sewing-table.scad.m4
index de3a5aa..b71e041 100644 (file)
@@ -51,6 +51,12 @@ leg_n_fins = 4;
 leg_n_tubules = 4;
 leg_tubule_dia = 4;
 
+// spacer
+
+spacer_ext_slop = 0.25;
+spacer_int_slop = 0.25;
+spacer_height = 10;
+
 // cutout
 
 machine_rear_to_front = 84 + 0.25 - 1.4;
@@ -702,6 +708,17 @@ module TestStrapPeg_Long(){ ////toplevel
   TestStrapPeg_any(60);
 }
 
+module PostSpacer(){ ////toplevel
+  $fn = 50;
+  difference(){
+    cylinder(r= ply_hole_dia_real/2 - spacer_ext_slop,
+            h= spacer_height);
+    translate([0,0,-1])
+      cylinder(r= post_dia/2 + spacer_int_slop,
+              h= ply_th + 2);
+  }
+}
+
 module Machine(){ ////toplevel
   Machine_NewArm();
   Machine_Curves();
@@ -763,6 +780,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])