KiCadと3次元モデル(6)

// dimensions in 0.1mm
l=63;
r1=23/2;
r2=6/2;
h2h=8*(50/1000)*25.4*10; echo(h2h);
ll=(h2h-l)/2; echo(ll);

module pin() {
translate([0,0,-r1]) rotate([0,0,0]) cylinder(r=r2,h=r1*3-5, $fn=16); // vertical
translate([0,-5,r1*2]) rotate([90,0,0]) cylinder(r=r2,h=ll-5, $fn=16); // horizozntal
translate([0,-5,r1*2-5]) rotate([0,-90,0]) 
rotate_extrude(angle=90, convexity=10) translate([5, 0]) circle(r2, $fn=16);
}

translate([0,l/2,r1*2]) rotate([90,0,0]) cylinder(r=r1,h=l, $fn=16); // body
translate([0,  h2h/2, 0]) pin();
translate([0, -h2h/2, 0]) rotate([0,0,180]) pin();

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.