Index: trunk/footprint/thru-hole/HC49U.scad =================================================================== --- trunk/footprint/thru-hole/HC49U.scad (revision 37522) +++ trunk/footprint/thru-hole/HC49U.scad (revision 37523) @@ -30,7 +30,7 @@ // in any way. // -module HC49(height=13.46, pins=2) +module HC49(height=13.46, pins=2, pin_descent=2.5) { major_diameter = 4.65; minor_diameter = 3.8; @@ -75,13 +75,13 @@ } } color([0.8,0.8,0.8]) { - translate ([0,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset +2.5); - translate ([4.88,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); + translate ([0,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset +pin_descent); + translate ([4.88,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); if (pins == 3) { - translate ([2.44,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); + translate ([2.44,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); } } } Index: trunk/footprint/thru-hole/HC49UH.scad =================================================================== --- trunk/footprint/thru-hole/HC49UH.scad (revision 37522) +++ trunk/footprint/thru-hole/HC49UH.scad (revision 37523) @@ -30,7 +30,7 @@ // in any way. // -module HC49H(height=13.46, pins=2) +module HC49H(height=13.46, pins=2, pin_descent=2.5) { major_diameter = 4.65; minor_diameter = 3.8; @@ -96,13 +96,13 @@ } rotate([-90*pin_sense,0,0]) { translate ([0,pin_sense*major_diameter/2,major_diameter]) { - translate ([0,0,-2.45]) - cylinder(r = pin_diameter/2, h = 2.451); - translate ([4.88,0,-2.45]) - cylinder(r = pin_diameter/2, h = 2.451); + translate ([0,0,-2.35]) + cylinder(r = pin_diameter/2, h = pin_descent); + translate ([4.88,0,-2.35]) + cylinder(r = pin_diameter/2, h = pin_descent); if (pins == 3) { - translate ([2.44,0,-2.45]) - cylinder(r = pin_diameter/2, h = 2.451); + translate ([2.44,0,-2.35]) + cylinder(r = pin_diameter/2, h = pin_descent); } } } Index: trunk/footprint/thru-hole/HC51U.scad =================================================================== --- trunk/footprint/thru-hole/HC51U.scad (revision 37522) +++ trunk/footprint/thru-hole/HC51U.scad (revision 37523) @@ -30,7 +30,7 @@ // in any way. // -module HC51(height=19.7, pins=2) +module HC51(height=19.7, pins=2, pin_descent=2.5) { major_diameter = 9.2; minor_diameter = 8.94; @@ -76,13 +76,13 @@ } } color([0.8,0.8,0.8]) { - translate ([0,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset +2.5); - translate ([12.3,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); + translate ([0,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset +pin_descent); + translate ([12.3,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); if (pins == 3) { - translate ([6.15,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); + translate ([6.15,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); } } } Index: trunk/footprint/thru-hole/HC51UH.scad =================================================================== --- trunk/footprint/thru-hole/HC51UH.scad (revision 37522) +++ trunk/footprint/thru-hole/HC51UH.scad (revision 37523) @@ -30,7 +30,7 @@ // in any way. // -module HC51H(height=19.7, pins=2) +module HC51H(height=19.7, pins=2, pin_descent=2.5) { major_diameter = 9.2; minor_diameter = 8.94; @@ -98,13 +98,13 @@ } rotate([-90*pin_sense,0,0]) { translate ([0,pin_sense*major_diameter/2,major_diameter-2.45]) { - translate ([0,0,-2.45]) - cylinder(r = pin_diameter/2, h = 2.451); - translate ([12.3,0,-2.45]) - cylinder(r = pin_diameter/2, h = 2.451); + translate ([0,0,-2.15]) + cylinder(r = pin_diameter/2, h = pin_descent); + translate ([12.3,0,-2.15]) + cylinder(r = pin_diameter/2, h = pin_descent); if (pins == 3) { - translate ([6.15,0,-2.45]) - cylinder(r = pin_diameter/2, h = 2.451); + translate ([6.15,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pin_descent); } } } Index: trunk/footprint/thru-hole/LED.scad =================================================================== --- trunk/footprint/thru-hole/LED.scad (revision 37522) +++ trunk/footprint/thru-hole/LED.scad (revision 37523) @@ -30,7 +30,7 @@ // in any way. // -module led(diameter=3) +module led(diameter=3, pin_descent=2.5) { height = 1.65*diameter + 0.35; union () { @@ -45,11 +45,10 @@ } } color([0.8,0.8,0.8]) { - translate ([-1.252,0,-1.2]) - cube ([0.5, 0.5, 2.5], true); - translate ([1.252,0,-1.2]) - cube ([0.5, 0.5, 2.5], true); + translate ([-1.252,0,-pin_descent/2]) + cube ([0.5, 0.5, pin_descent], true); + translate ([1.252,0,-pin_descent/2]) + cube ([0.5, 0.5, pin_descent], true); } } } - Index: trunk/footprint/thru-hole/OSC14_8.scad =================================================================== --- trunk/footprint/thru-hole/OSC14_8.scad (revision 37522) +++ trunk/footprint/thru-hole/OSC14_8.scad (revision 37523) @@ -33,7 +33,7 @@ // in any way. // -module OSC8_14(size=0) +module OSC8_14(size=0,pin_descent=2.5) { height = 5.3; major_diameter = 9.2; @@ -107,15 +107,14 @@ } color([0.8,0.8,0.8]) { - translate ([0,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset +2.5); - translate ([pin_spacing_x,0,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); - translate ([pin_spacing_x,-pin_spacing_y,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); - translate ([0,-pin_spacing_y,-2.45]) - cylinder(r = pin_diameter/2, h = pcb_offset + 2.5); + translate ([0,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset +pin_descent); + translate ([pin_spacing_x,0,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); + translate ([pin_spacing_x,-pin_spacing_y,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); + translate ([0,-pin_spacing_y,-pin_descent]) + cylinder(r = pin_diameter/2, h = pcb_offset + pin_descent); } } } -