Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created February 16, 2015 21:25
Show Gist options
  • Save Stemer114/7e420ea8ad9733c4e0ba to your computer and use it in GitHub Desktop.
Save Stemer114/7e420ea8ad9733c4e0ba to your computer and use it in GitHub Desktop.
openscad ring (with cutout)
// ring with cutout
// default values are for 1mm height, 10mm outside diameter and 5mm cutout
// de is epsilon environment to make cutouts non-manifold
module ring(
h=1,
od = 10,
id = 5,
de = 0.1
)
{
difference() {
cylinder(h=h, r=od/2);
translate([0, 0, -de])
cylinder(h=h+2*de, r=id/2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment