7 nomrad = height/2 - toothheight;
15 toothgap = webthick + webgap*2;
16 basethick = toothheight;
18 module DoveClipPin(height=height) {
19 translate([0,0, height/2]) intersection(){
22 mirror([0,0,m]) translate([0,0,height/2]) rotate([90,0,0])
23 cylinder($fn=20, r1=minrad, r2=maxrad, h=pindepth);
25 translate([-webthick/2, -pindepth, -height/2-1])
26 cube([webthick, pindepth, height+2]);
28 translate([-maxrad-1, -pindepth-1, -height/2])
29 cube([maxrad*2+2, pindepth+2, height]);
33 module DoveClipEnd(baseextend=1, h=7) {
34 cubex = nomrad*2 + jawthick*2;
35 cube0y = -basethick-nomrad*2-toothheight;
36 centrey = -basethick-nomrad;
38 translate([-cubex/2, cube0y, 0])
39 cube([cubex, -cube0y+baseextend, h]);
40 translate([0, centrey, -1])
41 cylinder($fn=20, r=nomrad, h=h+2);
42 translate([-toothgap/2, cube0y-1, -1])
43 cube([toothgap, toothheight+nomrad+1, h+2]);
47 module DoveClipPair(baseextend=1, h=7) {
48 delta = nomrad*2 + jawthick*2 + toothgap;
49 for (x=[-delta/2,delta/2])
51 DoveClipEnd(baseextend=baseextend, h=h);
54 module DoveClipPairBase(baseextend=0.1, h=7) {
55 delta = nomrad*2 + jawthick;
56 intrude = nomrad + basethick - basepinclear;
57 for (x=[-delta/2,delta/2]) {
59 DoveClipEnd(baseextend=baseextend, h=h);
61 translate([-delta, -intrude, 0])
62 cube([delta*2, intrude+0.1, h]);