X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=doveclip.scad;h=5291c4946434292f254c967b6a7dbcdf6c6b5137;hb=14272f5096d1d5581331c1a85db1505886ddbb6a;hp=6ceb2fec674842fb631834997edcdd99bfea912a;hpb=aec6f62c61e0d41677238ce144d37755443e855b;p=reprap-play.git diff --git a/doveclip.scad b/doveclip.scad index 6ceb2fe..5291c49 100644 --- a/doveclip.scad +++ b/doveclip.scad @@ -1,29 +1,34 @@ +// -*- C -*- + toothheight = 1.2; webthick = 1.8; height = 7; -pindepth = 10; +pinlengthfact = 1.2; nomrad = height/2 - toothheight; -minrad = nomrad - 0.5; -maxrad = nomrad + 0.5; +minrad = nomrad - 0.75; +maxrad = nomrad + 0.25; jawthick = 1.5; webgap = 0.4; +basepinclear = 1.0; toothgap = webthick + webgap*2; basethick = toothheight; -module DoveClipPin() { - translate([0,0, height/2]) intersection(){ +module DoveClipPin(h=height) { + pinh = h * pinlengthfact; + pinheight = nomrad*2 + jawthick*2; + translate([0,0, pinheight/2]) intersection(){ union(){ for (m=[0,1]) { - mirror([0,0,m]) translate([0,0,height/2]) rotate([90,0,0]) - cylinder($fn=20, r1=minrad, r2=maxrad, h=pindepth); + mirror([0,0,m]) translate([0,0,pinheight/2]) rotate([90,0,0]) + cylinder($fn=20, r1=minrad, r2=maxrad, h=pinh); } - translate([-webthick/2, -pindepth, -height/2-1]) - cube([webthick, pindepth, height+2]); + translate([-webthick/2, -pinh, -pinheight/2-1]) + cube([webthick, pinh, pinheight+2]); } - translate([-maxrad-1, -pindepth-1, -height/2]) - cube([maxrad*2+2, pindepth+2, height]); + translate([-maxrad-1, -pinh-1, -pinheight/2]) + cube([maxrad*2+2, pinh+2, pinheight]); } } @@ -47,3 +52,14 @@ module DoveClipPair(baseextend=1, h=7) { translate([x,0,0]) DoveClipEnd(baseextend=baseextend, h=h); } + +module DoveClipPairBase(baseextend=0.1, h=7) { + delta = nomrad*2 + jawthick; + intrude = nomrad + basethick - basepinclear; + for (x=[-delta/2,delta/2]) { + translate([x,0,0]) + DoveClipEnd(baseextend=baseextend, h=h); + } + translate([-delta, -intrude, 0]) + cube([delta*2, intrude+0.1, h]); +}