From: Ian Jackson Date: Thu, 11 Feb 2016 23:11:50 +0000 (+0000) Subject: bike-lipo-box: TestSealSelector etc. before do entirely differently X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8a43508c67edd0f64208fc190a7f88c5cd655e40;p=reprap-play.git bike-lipo-box: TestSealSelector etc. before do entirely differently --- diff --git a/bike-lipo-box.scad b/bike-lipo-box.scad index 2c6af79..c132285 100644 --- a/bike-lipo-box.scad +++ b/bike-lipo-box.scad @@ -55,4 +55,39 @@ module TestWall(){ } } -TestWall(); +ts_floorceil = 1.5; +ts_outer = [20,20,20]; +ts_wall = [wallthick,wallthick,ts_floorceil]; + +seal_h = 3; +seal_w = 1; + +module TestSealSelector(){ + oz = ts_outer[2]; + muchxy = [30,30,0]; + seal_horiz_spare = wallthick - seal_w; + seal_horiz_flat_outer = seal_horiz_spare/2; + seal_horiz_flat_inner = seal_horiz_spare - seal_horiz_flat_outer; +// translate([0,0, oz/2]){ + %translate(-muchxy/2) mirror([0,0,1]) cube(ts_outer + muchxy + [0,0,10]); + hull(){ + translate([1,1,0] * seal_horiz_flat_outer) + mirror([0,0,1]) + cube(ts_outer - 2 * [1,1,0] * seal_horiz_flat_outer); + translate([1,1,0] * seal_horiz_flat_inner + [0, 0, seal_h]) + mirror([0,0,1]) + cube(ts_outer - 2 * [1,1,0] * seal_horiz_flat_inner); + } +// } +} + +module TestSeal(){ + difference(){ + cube(ts_outer); + translate(ts_wall) cube(ts_outer - ts_wall*2); + } +} + +//TestWall(); +//TestSeal(); +TestSealSelector();