1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-18 20:41:18 +02:00

refactor: clean code

This commit is contained in:
Justin Lin
2022-03-27 11:36:09 +08:00
parent 3f7478710f
commit f34bfe1d90

View File

@@ -10,7 +10,6 @@
use <_impl/_mz_square_cells_impl.scad>;
use <mz_square_initialize.scad>;
use <../util/find_index.scad>;
function mz_square_cells(rows, columns, start = [0, 0], init_cells, x_wrapping = false, y_wrapping = false, seed) =
let(
@@ -18,8 +17,6 @@ function mz_square_cells(rows, columns, start = [0, 0], init_cells, x_wrapping =
mz = init_undef ? mz_square_initialize(rows, columns) : init_cells,
r = len(mz),
c = len(mz[0]),
// c = find_index(mz, function(cell) cell.y != 0),
// r = len(mz) / c
generated = go_maze(
start.x,
start.y,