chiark / gitweb /
tablet-case-corner-mount: back hole
[reprap-play.git] / tablet-case-corner-mount.scad
index 7c090081f5f732e0b547f764a060fd8f731ce12c..057cf8567bdd58468ab903c787e27493990122aa 100644 (file)
@@ -1,15 +1,21 @@
 // -*- C -*-
 
-main_sz = 20;
+main_sz = 20; //xxx
 
 wall_th = 3;
 
-front_fullsz = 10;
+front_fullsz = 10; //xxx
 
-back_tot_l = 30;
+front_th = 2;
+back_th = 4;
+gap_th = 5; //xxx
+
+back_tot_l = 30; //xxx
 back_cut_l = 4;
-back_cut_w = 10;
+back_cut_w = 10; //xxx
 back_prong_w = 3;
+back_hole_d = 2;
+back_hole_dia = 1 + 0.5;
 
 module MidPlan(){
   polygon([[0,            0],
@@ -44,6 +50,26 @@ module BackPlan(){
   }
 }
 
+module Hook(){
+  rotate([90,0,0]){
+    difference(){
+      union(){
+       linear_extrude(height=back_th)
+         BackPlan();
+       linear_extrude(height=back_th+gap_th+front_th)
+         MidPlan();
+       translate([0,0, back_th+gap_th])
+         linear_extrude(height=front_th) FrontPlan();
+      }
+      rotate([0,0,-45])
+       translate([0, back_tot_l - back_hole_d, back_th/2])
+       rotate([0,90,0]) translate([0,0,-50])
+       cylinder(h=100, r=back_hole_dia/2, $fn=40);
+    }
+  }
+}
+
 //MidPlan();
 //FrontPlan();
-BackPlan();
+//BackPlan();
+Hook();