Make bottom placement more readable.

This commit is contained in:
tastytea 2020-08-01 02:13:02 +02:00
parent bf412d9d5b
commit 0bf96f8783
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 7 deletions

View File

@ -124,15 +124,12 @@ module shelf()
}
/* Bottoms */
function bottom_pos(number) =
80 + (drawer_size * number) + (board_height * number);
color([0.2, 0.4, 0.2])
{
for (z = [
80, 80 + drawer_size + board_height,
80 + (drawer_size * 2) + (board_height * 2),
80 + (drawer_size * 3) + (board_height * 3),
80 + (drawer_size * 4) + (board_height * 4)
])
translate([lath_width, 0, z])
for (number = [0:4])
translate([lath_width, 0, bottom_pos(number)])
{
cube([drawer_size, drawer_size, board_height]);
}