chiark / gitweb /
crossbar-computer-led-mount: tidy tests prep for real
[reprap-play.git] / crossbar-computer-led-mount.scad
index 71a449e20c324439bb80515a84b207f0f7854db7..3771880139465a77d25be6b9db4b2e9c5c6b72bb 100644 (file)
@@ -3,19 +3,21 @@
 led_dia = 5 + 0.6;
 led_depth = 5;
 
-test_width = 15;
-test_height = 12;
+//--- tests ---
 
-thicks = [1,2,4,6];
+test_width = 24;
+test_height = 24;
 
-module Tests(){
-  for (thicki=[0:len(thicks)-1]) {
-    translate([thicki*test_width-0.1, 0, 0]) {
+test_thicks = [9,14,21];
+
+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])
+       translate([test_width/2, -1, test_height/2])
          rotate([-90,0,0])
          cylinder(r=led_dia/2, h=led_depth+1, $fn=30);
       }