From: Ian Jackson Date: Sun, 14 Aug 2016 13:50:34 +0000 (+0100) Subject: lock-inframe-bracket: wip ClipElevations X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=43931accc37d23ae67b8b0dd66c7c7b97b6b16ce;p=reprap-play.git lock-inframe-bracket: wip ClipElevations --- diff --git a/lock-inframe-bracket.scad b/lock-inframe-bracket.scad index 5b14c9d..64ce9c7 100644 --- a/lock-inframe-bracket.scad +++ b/lock-inframe-bracket.scad @@ -6,9 +6,14 @@ lock_d = 28.0 + 0.5; main_h = 45.0; backflange_d = 12; +lockshaft_r = [5, 5]; +cliprecess_h = 16; +total_h = 45; + back_gap = 7; main_th = 2.5; midweb_d = 3; +clip_th = 2.5; // calculated @@ -54,4 +59,30 @@ module MainPlan(){ } } -MainPlan(); +lockshaft_or = lockshaft_r + [clip_th,clip_th]; +cliprecess_ymax = cliprecess_h - lockshaft_r[1]; +clip_ymin = cliprecess_ymax - total_h; + +module ClipElevationPositive(){ + oval(lockshaft_or); + translate([-lockshaft_or[0], 0]) + square([lockshaft_or[0]*2, cliprecess_ymax]); +} + +module ClipElevationNegative(){ + hull(){ + for (y=[0, cliprecess_ymax+1]) + translate([0, y]) + oval(lockshaft_r); + } +} + +module ClipElevation(){ + difference(){ + ClipElevationPositive(1); + ClipElevationNegative(0); + } +} + +//MainPlan(); +ClipElevation();