From: Ian Jackson Date: Sun, 5 Nov 2017 23:01:42 +0000 (+0000) Subject: fix pin z in Kit X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=fe0b2dd35b8d82569f3854432222994ae8d64056;p=moebius3.git fix pin z in Kit Signed-off-by: Ian Jackson --- diff --git a/moebius-demo.scad b/moebius-demo.scad index dcb8568..b8c82d5 100644 --- a/moebius-demo.scad +++ b/moebius-demo.scad @@ -21,6 +21,7 @@ pin_height = 5; // computed sliceat = moebiuscore_sliceat * moebiuscore_nomsize; +pin_slopeheight = (pin_headwidth - pin_stemwidth)/2; module TopSlice(){ translate([0,0, 200-sliceat]) @@ -40,7 +41,7 @@ module HalfPinHeadProfile(xslop, yadj, lenadj) { th = pin_headheight + lenadj - yadj; hull(){ translate([ -tw/2, - pin_stemlen/2 + yadj + (pin_headwidth - pin_stemwidth)/2 ]) + pin_stemlen/2 + yadj + pin_slopeheight ]) square([ tw, th ]); translate([ -sw/2, pin_stemlen/2 + yadj ]) @@ -142,6 +143,9 @@ module Demo(){ ////toplevel module Kit(){ ////toplevel off = moebiuscore_nomsize*2.5; + pt = pin_stemlen/2 + pin_headheight + + pin_pin_yadj_range[1] + pin_slopeheight; + translate([0,0,sliceat]) Top(); translate([ 0, -off, 0 ]) @@ -149,9 +153,8 @@ module Kit(){ ////toplevel translate([0,0,sliceat]) Bottom(); for (d = [0,1] * pin_height * 2) - translate([ off, d, 0 ]) + translate([ off, d, pt ]) rotate([90,0,0]) - translate([ 0,0, pin_height/2 ]) Pin(); }