Created
November 1, 2016 03:50
-
-
Save chmullig/04a297c1fd53fc79a21c0fdd4ef95ae3 to your computer and use it in GitHub Desktop.
This file contains 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
module section(width, depth, height, border, base) { | |
difference(){ | |
cube([width+2*border, depth+2*border, height+base]); | |
translate([border, border, base])cube([width, depth, height]); | |
} | |
} | |
border = 4; | |
width = 11; | |
depth = 15; | |
height = 25; | |
base = 5; | |
step = 4; | |
sections = 6; | |
for (ycount=[0:sections-1]) { | |
translate([width*ycount + border*ycount, 0, 0])section(width, depth, height+ycount*step, border, base); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment