From 77df23ae835d8f74364d34c259e96b0a38e12fd2 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 16 Feb 2020 14:10:33 +0800 Subject: [PATCH] refactor --- examples/maze/sphere_maze.scad | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/maze/sphere_maze.scad b/examples/maze/sphere_maze.scad index eb42480d..a9893997 100644 --- a/examples/maze/sphere_maze.scad +++ b/examples/maze/sphere_maze.scad @@ -1,7 +1,7 @@ use ; -use ; -use ; use ; +use ; +use ; use ; r = 10; @@ -13,16 +13,16 @@ pole_offset = block_width * 1.5; module sphere_maze() { size = [rows * block_width, columns * block_width + pole_offset * 2]; - blocks = go_maze( - 1, 1, // starting point - starting_maze(rows, columns), - rows, columns, y_circular = true + blocks = mz_blocks( + [1, 1], + rows, columns, + y_circular = true ); p_offset = [block_width * rows, pole_offset, 0]; mr = m_rotation(90); - walls = maze_walls(blocks, rows, columns, block_width, bottom_border = false); + walls = mz_walls(blocks, rows, columns, block_width, bottom_border = false); for(wall_pts = walls) { rxpts = [ for(p = wall_pts)