Couldn't find the file I used, but I had drawn it in SolidWorks anyways (was being lazy). Here's an OpenSCAD version that I whipped up in about 5 minutes. Only took me that long because I couldn't remember some of the syntax and had to look it up (haven't opened OpenSCAD in a while...). I even commented it :)Quote
TheCrey
Do you have a stl file ?
The attached STL is for an 8mm diameter, 20mm long pin. Feel free to scale it, or even better use OpenSCAD to get it the right size.
pin_length = 20; //length of the pin pin_diam = 8; //diameter of the pin cutoff = 1; //amount to cut off of bottom of pin to make bottom flat $fn=30; //resolution. Increase to smooth pin at expense of larger file size difference(){ intersection(){ //create the pin cylinder rotate([90,0,0]) cylinder(r=pin_diam/2,h=pin_length,center=true); //chamfer the edges using a stretched sphere scale([1,2,1])sphere(r=pin_length/4+1); } //cube to cut off bottom of pin translate([0,0,-pin_diam+cutoff])cube([pin_diam+1,pin_length+1,pin_diam],center=true); }