// A key cap for a Tektronix logic analyzer keypad // with replacement 6x6mm SMD switches $fn=100; x=12.16; // The key cap shape module pipik() { cube([x, x, 6.25+6.62-1]); translate([(x-5.55)/2,(x-10.17)/2,0]) cube([5.55, 10.17, 6.25+14.12]); } // Rough push button dimensions a=6.50; b=4.00; c=3.40; d=7.35; difference() { pipik(); // The push button shape translate([x/2, x/2, -1]) cylinder(d+4,c/2,c/2); translate([(x-a)/2, (x-a)/2, -1]) cube([a,a,b+2]); // Cut away bits for solder pads translate([(x-a)/2,2-(x-a)/2,-1]) cube([20,(x-a)/2+2,3]); translate([(x-a)/2,x-(x-a)/2-1,-1]) cube([20,(x-a)/2+2,3]); }