Index: trunk/footprint/thru-hole/PENTAWATT.scad =================================================================== --- trunk/footprint/thru-hole/PENTAWATT.scad (revision 37515) +++ trunk/footprint/thru-hole/PENTAWATT.scad (revision 37516) @@ -31,7 +31,7 @@ // in any way. // -module pentawatt() +module pentawatt(pin_descent=2.5) { pins=5; pin_thickness = 0.5; @@ -57,21 +57,19 @@ notch_height = 6.0; module pin() { - pin_descent = 2.5; rotate([0,-90,180]) translate([-pin_thickness/2,0,-pin_width/2]) linear_extrude(height=pin_width) scale([0.921,1.0]) // need 6.1, have 6.62, scale: 0.921 - polygon([[0,0],[0.51,0],[0.51,0.56],[0.54,0.7],[0.6,0.82],[0.71,0.93],[0.84,1.02],[1.0,1.08],[6.26,2.24],[6.64,2.35],[6.86,2.47],[7.01,2.59],[7.11,2.74],[7.15,2.9],[7.15,5.5],[6.62,5.5],[6.62,3.29],[6.6,3.14],[6.57,2.99],[6.48,2.87],[6.22,2.76],[6.08,2.72],[0.72,1.55],[0.49,1.45],[0.3,1.34],[0.13,1.21],[0.02,0.99],[0,0.79]]); + polygon([[0,0],[0.51,0],[0.51,0.56],[0.54,0.7],[0.6,0.82],[0.71,0.93],[0.84,1.02],[1.0,1.08],[6.26,2.24],[6.64,2.35],[6.86,2.47],[7.01,2.59],[7.11,2.74],[7.15,2.9],[7.15,3+pin_descent],[6.62,3+pin_descent],[6.62,3.29],[6.6,3.14],[6.57,2.99],[6.48,2.87],[6.22,2.76],[6.08,2.72],[0.72,1.55],[0.49,1.45],[0.3,1.34],[0.13,1.21],[0.02,0.99],[0,0.79]]); } module pin2() { - pin_descent = 2.5; rotate([0,-90,180]) translate([-pin_thickness/2,0,-pin_width/2]) scale([1.606,1.0]) // 2.2 -> need to scale: 1.606 linear_extrude(height=pin_width) - polygon([[0,0],[0.2,0],[0.2,0.71],[0.21,0.8],[0.24,0.89],[0.31,1.02],[1.40,2.31],[1.54,2.5],[1.62,2.66],[1.65,2.80],[1.66,2.98],[1.67,3.18],[1.67,5.5],[1.37,5.5],[1.37,3.4],[1.36,3.2],[1.34,3.01],[1.29,2.85],[1.22,2.68],[1.12,2.52],[1.02,2.38],[0.2,1.4],[0.13,1.26],[0.06,1.10],[0.01,0.96],[0,0.8]]); + polygon([[0,0],[0.2,0],[0.2,0.71],[0.21,0.8],[0.24,0.89],[0.31,1.02],[1.40,2.31],[1.54,2.5],[1.62,2.66],[1.65,2.80],[1.66,2.98],[1.67,3.18],[1.67,3.0+pin_descent],[1.37,3.0+pin_descent],[1.37,3.4],[1.36,3.2],[1.34,3.01],[1.29,2.85],[1.22,2.68],[1.12,2.52],[1.02,2.38],[0.2,1.4],[0.13,1.26],[0.06,1.10],[0.01,0.96],[0,0.8]]); } module body() {