chiark / gitweb /
digispark-with-cable: wip
[reprap-play.git] / laptop-sound-cable-hooks.scad
index f144bae68c299456f9a59f0f354df1f635282bc1..8cfd468f261a028782507be388aac9916dd3f60d 100644 (file)
@@ -5,8 +5,10 @@ include <utils.scad>
 wall_th = 2;
 hook_th = 4;
 hook_hole = 4;
+hook_w_min = 6;
+hook_hook = 12;
 
-plug_entry_gap = 1.0;
+plug_entry_gap = 2.0;
 
 plug_l_d = [[ 27.78,
              10.62 + 0.75 ],
@@ -76,7 +78,15 @@ module TonguePlan(){
 }
 
 module FarHookPlan(){
-  TonguePlan();
+  mirror([1,0,0])
+    TonguePlan();
+
+  rectfromto([ 0, z_hook_min ],
+            [ hook_w_min, palmrest_from_plug_z + 0.1]);
+
+  translate([0, palmrest_from_plug_z])
+    rectfromto([ -hook_hook, 0 ],
+              [ hook_w_min, hook_w_min ]);
 }
 
 module RotateIntersect(n=6){
@@ -116,6 +126,11 @@ module PlugHolderPrint(){ ////toplevel
   render() PlugHolder();
 }
 
+module FarHookPrint(){ ////toplevel
+  linextr(0, hook_th)
+    FarHookPlan();
+}
+
 module DemoPlan() { ////toplevel
   translate([0,0,-10]) color("grey") PlugHolderPlan();
   PlugMainPlan();
@@ -125,8 +140,6 @@ module DemoPlan() { ////toplevel
   }
 
   translate([0,40,0]) {
-    mirror([1,0,0]) {
-      FarHookPlan();
-    }
+    FarHookPlan();
   }
 }