1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-07 07:16:36 +02:00
This commit is contained in:
Justin Lin
2019-09-02 08:43:10 +08:00
parent 8957fb0e1d
commit 76c703dfc2

View File

@@ -8,7 +8,7 @@ stairs_width = 5;
module pyramid_with_stairs(base_width, stairs_width, rows) {
height = base_width * sqrt(2) / 2;
module floor(i) {
module layer(i) {
base_w = base_width - (base_width / rows) * (i - 1) + stairs_width;
floor_h = height / rows * 2;
@@ -26,7 +26,7 @@ module pyramid_with_stairs(base_width, stairs_width, rows) {
}
for(i = [1:2:rows - 1]) {
floor(i);
layer(i);
}
}