chiark / gitweb /
Use funcs.scad.cpp from diziet-utils, and delete compat link
[reprap-play.git] / holetest.scad
1 // -*- C -*-
2
3 h=2;
4
5 $fa=1;
6 $fs=0.1;
7
8 label=true;
9
10 spc= 7;
11 l = 50;
12 w = 10;
13
14 lt = 0.5;
15 lw = 10;
16
17 // calculated
18
19 // Actual sizes (according to calipers) of things that fit
20 //  A
21 //  C - 1.88mm (M3 screw)
22 //  E - 2.97mm (3mm HSS bit shank)
23 //  G - 
24 //  I - 3.15mm tight fit (Yale padlock from extra padlocks tray)
25 //  K - 3.33mm (M3.5 screw)
26
27 ly0 = -w/2 -lw;
28
29 difference(){
30   union(){
31     cube([l,w,h], center=true);
32     if (label)
33       translate([-l/2, ly0, -h/2])
34         cube([l, lw, lt]);
35   }
36
37   for (i=[0:2:10]) {
38
39     sz = 3 + 0.5 * i/10;
40
41     echo(sz);
42     translate([(i-5)/2 * spc, 0, -7 ]) {
43       cylinder(r= sz/2, h=14);
44       linear_extrude(height=14, convexity=100) {
45         translate([0, ly0 + lw * .2])
46           text(halign="center",
47                size= lw * .6, font="DejaVu Sans:style=Bold",
48                chr(i + 65));
49       }
50     }
51   }
52 }