// -*- C -*- led_dia = 5 + 0.6; led_depth = 5; test_width = 15; test_height = 12; thicks = [9,14,21]; module Tests(){ for (thicki=[0:len(thicks)-1]) { translate([thicki*test_width-0.5, 0, 0]) { difference(){ cube([test_width, thicks[thicki] + led_depth, test_height]); translate([test_width/2, -1, test_height/2]) rotate([-90,0,0]) cylinder(r=led_dia/2, h=led_depth+1, $fn=30); } } } } Tests();