1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-28 08:50:30 +02:00
This commit is contained in:
Justin Lin
2021-10-06 16:33:17 +08:00
parent 95dc133d0d
commit 8f1d6a6e1a
2 changed files with 15 additions and 17 deletions

View File

@@ -19,19 +19,18 @@ function _mz_mask(mask) =
columns = len(mask[0])
)
[
for(y = [0:rows - 1])
for(x = [0:columns - 1])
mask[rows - y - 1][x] == 0 ?
cell(
x, y,
4, // mask
true // visited
)
:
cell(
x, y,
// all cells have top and right walls
3, // unvisited
false
)
for(y = [0:rows - 1], x = [0:columns - 1])
mask[rows - y - 1][x] == 0 ?
cell(
x, y,
4, // mask
true // visited
)
:
cell(
x, y,
// all cells have top and right walls
3, // unvisited
false
)
];

View File

@@ -104,8 +104,7 @@ function config_nbrs(maze) =
]
],
cell_outwards_lt = [
for(row = mz_empty_outs)
for(c = row)
for(row = mz_empty_outs, c = row)
let(
ri = get_ri(c),
ci = get_ci(c),