chiark / gitweb /
crossbar-computer-led-mount: Tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Jun 2013 22:06:14 +0000 (23:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Jun 2013 22:06:14 +0000 (23:06 +0100)
crossbar-computer-led-mount.scad [new file with mode: 0644]

diff --git a/crossbar-computer-led-mount.scad b/crossbar-computer-led-mount.scad
new file mode 100644 (file)
index 0000000..36dac88
--- /dev/null
@@ -0,0 +1,26 @@
+// -*- C -*-
+
+led_dia = 5;
+led_depth = 5;
+
+test_width = 15;
+test_height = 12;
+
+thicks = [1,2,4,6];
+
+module Tests(){
+  for (thicki=[0:len(thicks)-1]) {
+    translate([thicki*test_width-0.1, 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);
+      }
+    }
+  }
+}
+
+Tests();