mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 07:16:36 +02:00
rename
This commit is contained in:
@@ -8,7 +8,7 @@ stairs_width = 5;
|
|||||||
module pyramid_with_stairs(base_width, stairs_width, rows) {
|
module pyramid_with_stairs(base_width, stairs_width, rows) {
|
||||||
height = base_width * sqrt(2) / 2;
|
height = base_width * sqrt(2) / 2;
|
||||||
|
|
||||||
module floor(i) {
|
module layer(i) {
|
||||||
base_w = base_width - (base_width / rows) * (i - 1) + stairs_width;
|
base_w = base_width - (base_width / rows) * (i - 1) + stairs_width;
|
||||||
floor_h = height / rows * 2;
|
floor_h = height / rows * 2;
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ module pyramid_with_stairs(base_width, stairs_width, rows) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(i = [1:2:rows - 1]) {
|
for(i = [1:2:rows - 1]) {
|
||||||
floor(i);
|
layer(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user