Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Last active May 14, 2017 22:05
Show Gist options
  • Save Stemer114/fde348c4fad48ad421f14beb72b4c9c6 to your computer and use it in GitHub Desktop.
Save Stemer114/fde348c4fad48ad421f14beb72b4c9c6 to your computer and use it in GitHub Desktop.
polyhole with hollow interior (hollow column)
/* this module makes use of the polyhole library function by nophead (MCAD library)
* MCAD Library - Polyholes Copyright 2011 Nophead (of RepRap fame)
* It is licensed under the terms of Creative Commons Attribution 3.0 Unported.
* https://github.com/SolidCode/MCAD/blob/master/polyholes.scad
*/
function polyhole_hollow_eps() = 0.1; //epsilon environment for non-manifold differences
module polyhole_hollow(
h=10,
do=10, //outer diameter
di=8 //inner diameter
)
{
difference()
{
polyhole(h=h, d=do);
translate([0, 0, -polyhole_hollow_eps() ]) polyhole(h=h+2*polyhole_hollow_eps(), d=di);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment