Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created October 28, 2016 22:05
Show Gist options
  • Save Stemer114/294f0ea6d92f58db1918999d13a00f39 to your computer and use it in GitHub Desktop.
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
//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