pindwidth = 1.0;
module Plug(d=0){
- a = -atan(plugslope);
- tdx = d * cos(a);
- tdy = d * sin(a);
- bdx = d / cos(a);
+ dw = d;
+ dh = d;
+ a = atan(plugslope);
+ bdx = dw / cos(a);
+ tdy = dh;
+ tdx = bdx + dh * plugslope;
translate([-d,0,0]) rotate([90,0,90]) linear_extrude(height=plugl+0.1+d*2){
polygon([[-(plugwmin/2 + bdx), 0],
[-(plugwmax/2 + tdx), plugh + tdy],