X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=xeno-drivebay-bracket.scad;h=71975e6f02ad28ab07c44048c09ac5bd87e3e619;hb=8b65cca293fdc5217d0233febceae17e5d725d0c;hp=3bbff794485c232007ef931b02bf7df643c92e28;hpb=3b574060c51de1c059a0310d159a2b3002302ea0;p=reprap-play.git diff --git a/xeno-drivebay-bracket.scad b/xeno-drivebay-bracket.scad index 3bbff79..71975e6 100644 --- a/xeno-drivebay-bracket.scad +++ b/xeno-drivebay-bracket.scad @@ -1,41 +1,42 @@ // -*- C -*- -basel = 23; -basew = 27; +basel = 16; +basew = 24; baset = 4.0; -wallt = 4.0; +wallt = 2.5; wallh = 42; -baseholesz = 4; // fixme check -baseholeslot = 4; +baseholesz = 3.7; +baseholeslot = 6.5; +baseholeslop = -0.5; topl = 20; holeslop = 0.5; -webt = 3; +webt = 2.5; -padt = 3; -padw = 20; +padt = webt; +padw = 12; padl = padw; -padholesz = 5.0; +padholesz = 3.0; wallholeh = 6+14+2; -wallholesz = 3.0; // fixme check +wallholesz = 3.0; wallholeslot = 4.5; walll = basel + webt + padl;; webw = min(basew, padw); -module slothole(sz, slot, thick) { +module slothole(sz, slot, thick, csunk=true, slop=holeslop) { hull(){ for (y = [-slot/2,slot/2]) { translate([0,y,-0.05]) - cylinder(r1=sz/2 + holeslop, - r2=sz/2+thick + holeslop, + cylinder(r1=sz/2 + slop, + r2=sz/2 + (csunk ? thick : 0) + slop, h=thick+0.10); } } @@ -47,7 +48,7 @@ module Bracket(){ cube([basel, basew, baset]); translate([basel/2, -(basew+wallt)/2, 0]) - slothole(baseholesz, baseholeslot, baset); + slothole(baseholesz, baseholeslot, baset, slop=baseholeslop); } difference(){ @@ -64,11 +65,20 @@ module Bracket(){ translate([basel/2, 0, wallholeh]) rotate([90,90,0]) - slothole(wallholesz, wallholeslot, wallt); + slothole(wallholesz, wallholeslot, wallt, csunk=false); } - translate([basel-0.01, -webw, 0]) - cube([webt+0.02, webw, wallh]); + translate([basel-0.01, 0, 0]) { + rotate([90,0,90]) { + linear_extrude(height=webt+0.02) { + polygon([[-basew, 0], + [-basew, baset], + [-webw, wallh], + [0, wallh], + [0, 0]]); + } + } + } translate([basel+webt, -padw, wallh-padt]) { difference(){ @@ -79,4 +89,22 @@ module Bracket(){ } } -Bracket(); +module BracketR(){ ////toplevel + rotate([-90,0,0]) Bracket(); +} + +module BracketL(){ ////toplevel + mirror([1,0,0]) BracketR(); +} + +module Kit(){ ////toplevel + for (y=[0, -wallh-5]) { + translate([0,y,0]) { + translate([5,0,0]) BracketR(); + BracketL(); + } + } +} + +//Kit(); +//BracketR();