From 41f7f5a08c54763beb8d195bcf7ba132f0f7d911 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 16 Feb 2020 12:12:35 +0800 Subject: [PATCH] refactor --- examples/maze/torus_maze.scad | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/maze/torus_maze.scad b/examples/maze/torus_maze.scad index 473beafe..2208b324 100644 --- a/examples/maze/torus_maze.scad +++ b/examples/maze/torus_maze.scad @@ -1,7 +1,7 @@ use ; -use ; -use ; use ; +use ; +use ; rows = 36; columns = 12; @@ -14,11 +14,12 @@ leng = rows * block_width; radius = 0.5 * leng / PI; a_step = 360 / leng; -blocks = go_maze( - 1, 1, // starting point - starting_maze(rows, columns), - rows, columns, x_circular = true, y_circular = true +blocks = maze_blocks( + [1, 1], + rows, columns, + x_circular = true, y_circular = true ); + walls = maze_walls(blocks, rows, columns, block_width, left_border = false, bottom_border = false); size = [columns * block_width, rows * block_width];