From: Ian Jackson Date: Sat, 13 Feb 2016 20:12:12 +0000 (+0000) Subject: bike-lipo-box: TestWall: replace ad-hoc with S1930_Negative (nfc) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=4c41de2c647ee95f9935276c8358757420040537 bike-lipo-box: TestWall: replace ad-hoc with S1930_Negative (nfc) --- diff --git a/bike-lipo-box.scad.m4 b/bike-lipo-box.scad.m4 index b3dd3db..85f6e59 100644 --- a/bike-lipo-box.scad.m4 +++ b/bike-lipo-box.scad.m4 @@ -27,6 +27,13 @@ module S1930_Positive(){ s1930_x_outer + s1930_around, s1930_y_outer + s1930_around], center=true); } +module S1930_Negative(){ + cube([60, s1930_x, s1930_y], + center=true); + translate([1, 0,0]) + cube([s1930_recess*2+2, s1930_x_outer, s1930_y_outer], + center=true); +} module TestWall(){ ////toplevel sw_ctr = [25, 0, 25]; @@ -57,12 +64,9 @@ module TestWall(){ ////toplevel S1930_Positive(); } - translate(sw_ctr) { - rotate([90,0,0]) { - cube([s1930_x, s1930_y, 10], center=true); - translate([0,0, -5]) - cube([s1930_x_outer, s1930_y_outer, 10], center=true); - } + translate(sw_ctr_new) { + rotate([0,0,90]) + S1930_Negative(); } } }