1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 13:31:30 +02:00
This commit is contained in:
Justin Lin
2022-03-15 20:43:21 +08:00
parent ac9368e74d
commit 65116cbc78

View File

@@ -194,12 +194,10 @@ function nextCells(maze, cell, dir) =
cw = get_cw(cell),
ccw = get_ccw(cell)
)
[
is_undef(inward) ? [] : [cell_from(maze, inward)],
is_undef(outwards) ? [] : [for(outward = outwards) cell_from(maze, outward)],
is_undef(cw) ? [] : [cell_from(maze, cw)],
is_undef(ccw) ? [] : [cell_from(maze, ccw)]
][dir];
dir == 0 ? (is_undef(inward) ? [] : [cell_from(maze, inward)]) :
dir == 1 ? (is_undef(outwards) ? [] : [for(outward = outwards) cell_from(maze, outward)]) :
dir == 2 ? (is_undef(cw) ? [] : [cell_from(maze, cw)]) :
(is_undef(ccw) ? [] : [cell_from(maze, ccw)]);
function visitIN(maze, next, currentCell) =
update_maze(