mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-21 14:04:53 +02:00
refactor
This commit is contained in:
@@ -194,12 +194,10 @@ function nextCells(maze, cell, dir) =
|
|||||||
cw = get_cw(cell),
|
cw = get_cw(cell),
|
||||||
ccw = get_ccw(cell)
|
ccw = get_ccw(cell)
|
||||||
)
|
)
|
||||||
[
|
dir == 0 ? (is_undef(inward) ? [] : [cell_from(maze, inward)]) :
|
||||||
is_undef(inward) ? [] : [cell_from(maze, inward)],
|
dir == 1 ? (is_undef(outwards) ? [] : [for(outward = outwards) cell_from(maze, outward)]) :
|
||||||
is_undef(outwards) ? [] : [for(outward = outwards) cell_from(maze, outward)],
|
dir == 2 ? (is_undef(cw) ? [] : [cell_from(maze, cw)]) :
|
||||||
is_undef(cw) ? [] : [cell_from(maze, cw)],
|
(is_undef(ccw) ? [] : [cell_from(maze, ccw)]);
|
||||||
is_undef(ccw) ? [] : [cell_from(maze, ccw)]
|
|
||||||
][dir];
|
|
||||||
|
|
||||||
function visitIN(maze, next, currentCell) =
|
function visitIN(maze, next, currentCell) =
|
||||||
update_maze(
|
update_maze(
|
||||||
|
Reference in New Issue
Block a user