chiark / gitweb /
as printed today
[reprap-play.git] / light-bracket.scad
index f64e81c..9bbf341 100644 (file)
@@ -1,7 +1,7 @@
 shrinkage = 1.0126; // width of 56.2 gives 55.5
-remote_width= 56.2 * shrinkage;
+remote_width= 56.35 * shrinkage;
 remote_height=124.7 * shrinkage;
-remote_thick=7.3; // height of 6.8 gives 6.3
+remote_thick=6.1; // height of 6.8 gives 6.3
 mainhole_thick=remote_thick+1;
 hook_hook_thick=1.5;
 hook_stem_thick=1.5;
@@ -23,17 +23,39 @@ module mainhole() {
 }
 
 module hhook(extent) {
-       difference() {
-               translate([ -hook_stem_thick, 0, -base_thick*2 ])
-                       cube(center=false,
-                               size=[
-                       hook_stem_thick+base_margin+base_edgewidth-1,
-                       extent,
-                       base_thick*2 + mainhole_thick + hook_hook_thick
-                                       ]);
-               translate([hook_hook_len, -5, 0])
-                        cube(center=false, size=[ 20, extent+10, 30 ]);
-       }
+       translate([ -hook_stem_thick, 0, -base_thick*2 ])
+               cube(center=false,
+                       size=[
+                               hook_stem_thick,
+                               extent,
+                               base_thick*2 + mainhole_thick + hook_hook_thick
+                       ]);
+       translate([ -hook_stem_thick, 0, -base_thick*2 ])
+               cube(center=false,
+                       size=[
+                               hook_stem_thick+base_margin+base_edgewidth-1,
+                               extent,
+                               base_thick*2
+                       ]);
+       translate([ -hook_stem_thick+1.0, 0, mainhole_thick ])
+               rotate(v=[0,1,0], a=-30)
+               cube(center=false,
+                       size=[
+                               3,
+                               extent,
+                               hook_hook_thick
+                       ]);
+       //difference() {
+       //      #translate([ -hook_stem_thick, 0, -base_thick*2 ])
+       //              cube(center=false,
+       //                      size=[
+       //              hook_stem_thick+base_margin+base_edgewidth-1,
+       //              extent,
+       //              base_thick*2 + mainhole_thick + hook_hook_thick
+       //                              ]);
+       //      translate([hook_hook_len, -5, 0])
+       //               cube(center=false, size=[ 20, extent+10, 30 ]);
+       //}
 }
 
 module hhookside(extent) {
@@ -104,7 +126,7 @@ module bracket() {
                stuff();
                mainhole();
                for (y=screw_ys) translate([0, y, 0])   
-                       screwhole(5,9); //dia=4 gives 2.9
+                       screwhole(5.4,10); //dia=4 gives 2.9
                                         //holedia=10 gives 9.0 want 7.0
                translate([0,0,-50 - base_thick])
                        cube(center=true,[300,300,100]); // print bed
@@ -112,6 +134,6 @@ module bracket() {
 }
 
 intersection() {
-       !bracket();
-       cube(center=true, [100,55,100]);
+       bracket();
+       cube(center=true, [100,70,100]);
 }