Skip to content

Instantly share code, notes, and snippets.

@yggi
Last active February 4, 2020 16:01
Show Gist options
  • Save yggi/bfb565b2a5b6eca4a7a93108db7539d3 to your computer and use it in GitHub Desktop.
Save yggi/bfb565b2a5b6eca4a7a93108db7539d3 to your computer and use it in GitHub Desktop.
faces=12;
h1=2;
h2=2.8;
h3=1;
h4=14;
d1=18;
d2=27;
d3=30;
d4=30;
az = 360/(faces*2);
$fn=faces;
eps=0.01;
hull(){
translate([0,0,h1+h2+h3+h4]) cylinder(d=d1,h=eps);
rotate([0,0,az]) translate([0,0,h2+h3+h4]) cylinder(d=d2,h=eps);
translate([0,0,h3+h4]) cylinder(d=d3,h=eps);
translate([0,0,h4]) cylinder(d=d4,h=eps);
cylinder(d=eps,h=eps);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment