3 include <moebius-core.scad>
13 pin_yadj_range = [ -0.5, +0.5 ];
17 sliceat = moebiuscore_sliceat * moebiuscore_nomsize;
22 translate([0,0, 200-sliceat])
23 cube(center=true, 400);
27 module HalfPinHeadProfile(xslop, yadj, lenadj) {
28 sw = pin_stemwidth + xslop*2;
29 tw = pin_headwidth + xslop*2;
30 th = pin_headheight + lenadj - yadj;
33 pin_stemlen/2 + yadj + (pin_headwidth - pin_stemwidth)/2 ])
41 module PinStemProfile(xslop) {
43 [ pin_stemwidth + xslop*2,
44 pin_stemlen + pin_headheight/2 ]);
47 module PinExtrudePortion(zi,zrange){
48 translate([0,0,zrange[zi]])
50 linear_extrude(height=0.1)
54 module PinExtrude(zrange,
55 xslop=[0,0], yadj=[0,0], lenadj=[0,0], len1adj=[0,0]){
56 for (ml= [[0, lenadj], [1, len1adj]]) {
60 PinExtrudePortion(zi,zrange)
61 HalfPinHeadProfile(xslop[zi], yadj[zi], ml[1][zi]);
67 PinExtrudePortion(zi,zrange)
68 PinStemProfile(xslop[zi]);
75 translate( moebius_pin_locns[i] * moebiuscore_nomsize )
77 translate( moebius_pin_locns[i] * moebiuscore_nomsize +
78 moebius_pin_normals[i] * moebiuscore_nomsize*0.5 )