chiark / gitweb /
6b2117aa6ce2acf5758357795ab741f5dd11da0c
[reprap-play.git] / crossbar-computer-led-mount.scad
1 // -*- C -*-
2
3 led_dia = 5 + 0.6;
4 led_depth = 5;
5
6 //--- tests ---
7
8 test_width = 24;
9 test_height = 24;
10
11 test_thicks = [9,14,21];
12
13 module Tests(){ ////toplevel
14   for (thicki=[0:len(test_thicks)-1]) {
15     translate([thicki*test_width-0.5, 0, 0]) {
16       difference(){
17         cube([test_width,
18               test_thicks[thicki] + led_depth,
19               test_height]);
20         translate([test_width/2, -1, test_height/2])
21           rotate([-90,0,0])
22           cylinder(r=led_dia/2, h=led_depth+1, $fn=30);
23       }
24     }
25   }
26 }
27
28 //Tests();
29
30 //--- real thing ---
31