Created
October 28, 2016 22:05
-
-
Save Stemer114/294f0ea6d92f58db1918999d13a00f39 to your computer and use it in GitHub Desktop.
two polyholes (l1, d1 and l2, d2) stacked on top of each other, with optional support layer in between
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
//two polyholes (d1, h1 and d2, h2) stacked on top of each other | |
//can be used for modelling cutouts for cylinder head screws, bearings with axle bore etc. | |
//out of solid components | |
module stacked_polyholes( | |
d1 = 5, //first polyhole (bottom) | |
l1 = 10, | |
d2 = 10, //second polyhole (stacked on top) | |
l2 = 20, | |
lS = 0 //optional support layer in betwenn (set this to layer thickness for upside down printing) | |
) | |
{ | |
union() { | |
//first at bottom | |
polyhole(h=l1+de, d=d1); | |
//2nd stacked on top | |
translate([0, 0, l1+lS]) | |
polyhole(h=l2, d=d2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment