Skip to content

Instantly share code, notes, and snippets.

@paulhayes
Last active May 13, 2019 09:44
Show Gist options
  • Save paulhayes/f8b30552a71f7be5bcc562e30492c72d to your computer and use it in GitHub Desktop.
Save paulhayes/f8b30552a71f7be5bcc562e30492c72d to your computer and use it in GitHub Desktop.
let sphereRadius = 500/2;
let baseRadius = 240/2;
let height = 26.4;
function main () {
return cylinder({r1:baseRadius,r2:baseRadius-8,start:[0,0,0],end:[0,0,height],fn:120}).subtract(
sphere({r:sphereRadius,fn:120}).translate([0,0,sphereRadius+0.6])
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment