mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-29 01:11:30 +02:00
refactor
This commit is contained in:
@@ -19,19 +19,18 @@ function _mz_mask(mask) =
|
|||||||
columns = len(mask[0])
|
columns = len(mask[0])
|
||||||
)
|
)
|
||||||
[
|
[
|
||||||
for(y = [0:rows - 1])
|
for(y = [0:rows - 1], x = [0:columns - 1])
|
||||||
for(x = [0:columns - 1])
|
mask[rows - y - 1][x] == 0 ?
|
||||||
mask[rows - y - 1][x] == 0 ?
|
cell(
|
||||||
cell(
|
x, y,
|
||||||
x, y,
|
4, // mask
|
||||||
4, // mask
|
true // visited
|
||||||
true // visited
|
)
|
||||||
)
|
:
|
||||||
:
|
cell(
|
||||||
cell(
|
x, y,
|
||||||
x, y,
|
// all cells have top and right walls
|
||||||
// all cells have top and right walls
|
3, // unvisited
|
||||||
3, // unvisited
|
false
|
||||||
false
|
)
|
||||||
)
|
|
||||||
];
|
];
|
@@ -104,8 +104,7 @@ function config_nbrs(maze) =
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
cell_outwards_lt = [
|
cell_outwards_lt = [
|
||||||
for(row = mz_empty_outs)
|
for(row = mz_empty_outs, c = row)
|
||||||
for(c = row)
|
|
||||||
let(
|
let(
|
||||||
ri = get_ri(c),
|
ri = get_ri(c),
|
||||||
ci = get_ci(c),
|
ci = get_ci(c),
|
||||||
|
Reference in New Issue
Block a user