chiark / gitweb /
light-bracket: wip hollow base
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Jul 2012 00:53:23 +0000 (01:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Jul 2012 00:53:23 +0000 (01:53 +0100)
light-bracket.scad

index 3b42970..73edbe7 100644 (file)
@@ -9,6 +9,7 @@ base_thick=6;
 base_margin=4.0;
 base_width=remote_width-base_margin*2;
 base_height=remote_height-base_margin*2;
+base_edgewidth=4;
 
 // origin is base of mainhole
 
@@ -21,9 +22,12 @@ module mainhole() {
 module hhook(extent) {
        difference() {
                translate([ -hook_stem_thick, 0, -base_thick*2 ])
-                       cube(center=false, size=[ hook_stem_thick+15, extent,
-                               base_thick*2 + mainhole_thick
-                                       + hook_hook_thick ]);
+                       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 ]);
        }
@@ -45,10 +49,15 @@ module hstuff() {
 }
 
 module base() {
+       translate([ 0, base_height/2 + base_margin, -base_thick/2 ])
        difference() {
-               translate([ 0, base_height/2 + base_margin, -base_thick/2 ])
-                       cube(center=true,
-                               [ base_width, base_height, base_thick+10 ]);
+               cube(center=true,
+                       [ base_width, base_height, base_thick+10 ]);
+               cube(center=true,
+                       [ base_width - base_edgewidth*2,
+                         base_height - base_edgewidth*2,
+                         base_thick + 15 ]);
+               
        }
 //     translate([-base_width/2, base_margin, -base_thick*2])
 //             cube(center=false, [base_width,base_height,base_thick+10]);
@@ -60,7 +69,8 @@ module stuff() {
        hstuff();
        mirror([1,0,0]) hstuff();
        base();
-       //for (y=screw_ys)
+       for (y=screw_ys) translate([0, y, -20])
+               cylinder(r=7.5, h=21);
 }
 
 module screwhole(holedia, csdia) {