From: Ian Jackson Date: Sat, 15 Sep 2012 22:44:41 +0000 (+0100) Subject: doveclip fix pin dimensions more X-Git-Tag: filamentspool-v2-release~851 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=14272f5096d1d5581331c1a85db1505886ddbb6a doveclip fix pin dimensions more --- diff --git a/doveclip.scad b/doveclip.scad index 52f1230..5291c49 100644 --- a/doveclip.scad +++ b/doveclip.scad @@ -3,7 +3,7 @@ toothheight = 1.2; webthick = 1.8; height = 7; -pindepth = 10; +pinlengthfact = 1.2; nomrad = height/2 - toothheight; minrad = nomrad - 0.75; maxrad = nomrad + 0.25; @@ -15,19 +15,20 @@ basepinclear = 1.0; toothgap = webthick + webgap*2; basethick = toothheight; -module DoveClipPin(h=pindepth) { +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,pinheight/2]) rotate([90,0,0]) - cylinder($fn=20, r1=minrad, r2=maxrad, h=h); + cylinder($fn=20, r1=minrad, r2=maxrad, h=pinh); } - translate([-webthick/2, -h, -pinheight/2-1]) - cube([webthick, h, pinheight+2]); + translate([-webthick/2, -pinh, -pinheight/2-1]) + cube([webthick, pinh, pinheight+2]); } - translate([-maxrad-1, -h-1, -pinheight/2]) - cube([maxrad*2+2, h+2, pinheight]); + translate([-maxrad-1, -pinh-1, -pinheight/2]) + cube([maxrad*2+2, pinh+2, pinheight]); } }