From: Ian Jackson Date: Tue, 3 Jul 2012 00:37:40 +0000 (+0100) Subject: light-bracket: wip, has holes X-Git-Tag: iwj-success-2012-07-29~33 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=55e5735470f8bf73740c1c26e7d3a0178a8ff72c light-bracket: wip, has holes --- diff --git a/light-bracket.scad b/light-bracket.scad index 66d406f..c5715f6 100644 --- a/light-bracket.scad +++ b/light-bracket.scad @@ -10,6 +10,8 @@ base_margin=4.0; base_width=remote_width-base_margin*2; base_height=remote_height-base_margin*2; +// origin is base of mainhole + module mainhole() { translate([ -remote_width/2, 0, 0 ]) cube(center=false, @@ -42,16 +44,30 @@ module hstuff() { translate([-10,0,0]) hhookbot(15); } +module base() { + translate([-base_width/2, base_margin, -base_thick*2]) + cube(center=false, [base_width,base_height,base_thick+10]); +} + module stuff() { hstuff(); mirror([1,0,0]) hstuff(); - translate([-base_width/2, base_margin, -base_thick*2]) - cube(center=false, [base_width,base_height,base_thick+10]); + base(); +} + +module screwhole(holedia, csdia) { + // screw goes along z axis downwards + // origin is base of countersink + // results are positive, so this should be subtracted + translate([0,0,-100]) cylinder(h=200, r=holedia/2); + cylinder(h=100, r=csdia/2); } difference() { stuff(); mainhole(); + translate([0, 20, -base_thick+2]) screwhole(4,10); + translate([0, remote_height-30, -base_thick+2]) screwhole(4,10); translate([0,0,-50 - base_thick]) cube(center=true,[300,300,100]); // print bed }