Skip to content

Instantly share code, notes, and snippets.

@alpha1125
Created February 9, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpha1125/754e54c278ff0fb0b9e0826a75992661 to your computer and use it in GitHub Desktop.
Save alpha1125/754e54c278ff0fb0b9e0826a75992661 to your computer and use it in GitHub Desktop.
shape profile, that I want to linear extrude and chamfer the upper and outer edges
module outerShape(){
hull(){
translate([7.5,7.5]) circle(r=7.5);
translate([7.5,55-7.5]) circle(r=7.5);
midCircle=15;
translate([45-midCircle,0]){
translate([midCircle,midCircle]) circle(r=midCircle);
translate([midCircle,55-midCircle]) circle(r=midCircle);
}
translate([60, 55/2]) circle(r=18);
}
}
module throughHole(){
center=[60, 55/2];
translate(center)
intersection(){
circle(d=24.8);
square([21,100], center=true);
}
}
difference(){
outerShape();
throughHole();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment