Last active
May 14, 2017 22:05
-
-
Save Stemer114/fde348c4fad48ad421f14beb72b4c9c6 to your computer and use it in GitHub Desktop.
polyhole with hollow interior (hollow column)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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