From: Ian Jackson Date: Thu, 29 Oct 2015 19:47:03 +0000 (+0000) Subject: led-panel-ceiling-bracket: wip X-Git-Tag: filamentspool-v2-release~145 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=312276b1830274d007feaf488fe21f8cfdf03f09;p=reprap-play.git led-panel-ceiling-bracket: wip --- diff --git a/led-panel-ceiling-bracket.scad b/led-panel-ceiling-bracket.scad index a2e05ff..6e4b9b5 100644 --- a/led-panel-ceiling-bracket.scad +++ b/led-panel-ceiling-bracket.scad @@ -8,18 +8,27 @@ backspc = 10; light_height = 12.5; hole_from_back = 7.2 + 0.5; hole_dia = 3.5 + 0.5; +bolthead_dia = 7 + 1.0; +bolthead_depth = 5; height = light_height + backspc; +octagon_fudge = 1/cos(22.5); + module Bracket(){ difference(){ translate([-len/2, 0,0]) cube([len, width, height]); for (xsgn=[-1,+1]) { translate([xsgn * holespc/2, -1, light_height - hole_from_back]) { - rotate([-90,0,0]) - rotate([0,0,360/8/2]) - cylinder(r=hole_dia/2, h=50, $fn=8); + rotate([-90,0,0]) { + rotate([0,0,360/8/2]) { + cylinder(r=bolthead_dia/2 * octagon_fudge, + h= bolthead_depth +1, $fn=8); + cylinder(r=hole_dia/2 * octagon_fudge, + h=50, $fn=8); + } + } } } }