7 nomrad = height/2 - toothheight;
8 minrad = nomrad - 0.75;
9 maxrad = nomrad + 0.25;
15 toothgap = webthick + webgap*2;
16 basethick = toothheight;
18 module DoveClipPin(h=pindepth) {
19 pinheight = nomrad*2 + jawthick*2;
20 translate([0,0, pinheight/2]) intersection(){
23 mirror([0,0,m]) translate([0,0,pinheight/2]) rotate([90,0,0])
24 cylinder($fn=20, r1=minrad, r2=maxrad, h=h);
26 translate([-webthick/2, -h, -pinheight/2-1])
27 cube([webthick, h, pinheight+2]);
29 translate([-maxrad-1, -h-1, -pinheight/2])
30 cube([maxrad*2+2, h+2, pinheight]);
34 module DoveClipEnd(baseextend=1, h=7) {
35 cubex = nomrad*2 + jawthick*2;
36 cube0y = -basethick-nomrad*2-toothheight;
37 centrey = -basethick-nomrad;
39 translate([-cubex/2, cube0y, 0])
40 cube([cubex, -cube0y+baseextend, h]);
41 translate([0, centrey, -1])
42 cylinder($fn=20, r=nomrad, h=h+2);
43 translate([-toothgap/2, cube0y-1, -1])
44 cube([toothgap, toothheight+nomrad+1, h+2]);
48 module DoveClipPair(baseextend=1, h=7) {
49 delta = nomrad*2 + jawthick*2 + toothgap;
50 for (x=[-delta/2,delta/2])
52 DoveClipEnd(baseextend=baseextend, h=h);
55 module DoveClipPairBase(baseextend=0.1, h=7) {
56 delta = nomrad*2 + jawthick;
57 intrude = nomrad + basethick - basepinclear;
58 for (x=[-delta/2,delta/2]) {
60 DoveClipEnd(baseextend=baseextend, h=h);
62 translate([-delta, -intrude, 0])
63 cube([delta*2, intrude+0.1, h]);