1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-26 16:04:46 +02:00
This commit is contained in:
Justin Lin
2020-11-11 08:34:06 +08:00
parent c09654971c
commit 37d7e4b3e3

View File

@@ -120,7 +120,7 @@ function carve_bottom(x, y, maze, rows) =
[for(b = maze) [get_x(b), get_y(b)] == [x, ny] ? [x, ny, 2, 0] : b];
// 0(right), 1(top), 2(left), 3(bottom)
function try_block(dir, x, y, maze, rows, columns) =
function carve(dir, x, y, maze, rows, columns) =
dir == 0 ? carve_right(x, y, maze) :
dir == 1 ? carve_top(x, y, maze) :
dir == 2 ? carve_left(x, y, maze, columns) :
@@ -172,7 +172,7 @@ function try_routes_from(x, y, dir, maze, rows, columns, x_circular, y_circular,
// try the block
go_maze(
next_x(x, dir, columns, x_circular), next_y(y, dir, rows, y_circular),
try_block(dir, x, y, maze, rows, columns),
carve(dir, x, y, maze, rows, columns),
rows, columns,
x_circular, y_circular,
seed