Skip to content

Instantly share code, notes, and snippets.

@lorf
Last active August 27, 2017 01:56
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 lorf/7640590c21a4aa550a013099ec899ee8 to your computer and use it in GitHub Desktop.
Save lorf/7640590c21a4aa550a013099ec899ee8 to your computer and use it in GitHub Desktop.
Another crown in ImplicitCAD
height=5;
idia=20;
odia=40;
num=7;
base=1;
// Resolution
$res = 0.5;
linear_extrude( height(xx,yy) = base + height/2+(xx/abs(xx+0.000001))*(height/2)*cos(atan(yy/(xx+0.000001))*num) ) {
difference() {
circle(r=odia/2);
circle(r=idia/2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment