From: Ian Jackson Date: Sat, 8 Jun 2013 19:20:57 +0000 (+0100) Subject: crossbar-computer-led-mount: tidy tests prep for real X-Git-Tag: filamentspool-v2-release~537 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=39a4c04d5673c33c7841f722e863f9dcafece31d;p=reprap-play.git crossbar-computer-led-mount: tidy tests prep for real --- diff --git a/crossbar-computer-led-mount.scad b/crossbar-computer-led-mount.scad index 041ca9d..3771880 100644 --- a/crossbar-computer-led-mount.scad +++ b/crossbar-computer-led-mount.scad @@ -3,17 +3,19 @@ led_dia = 5 + 0.6; led_depth = 5; +//--- tests --- + test_width = 24; test_height = 24; -thicks = [9,14,21]; +test_thicks = [9,14,21]; -module Tests(){ - for (thicki=[0:len(thicks)-1]) { +module Tests(){ ////toplevel + for (thicki=[0:len(test_thicks)-1]) { translate([thicki*test_width-0.5, 0, 0]) { difference(){ cube([test_width, - thicks[thicki] + led_depth, + test_thicks[thicki] + led_depth, test_height]); translate([test_width/2, -1, test_height/2]) rotate([-90,0,0])