From 80d4c838fd9f9f8af2bf21e243ecfc35382bdfd7 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 7 Mar 2021 21:03:48 +0800 Subject: [PATCH] rename param --- examples/maze/theta_maze.scad | 10 +++++----- src/maze/mz_theta_cells.scad | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/maze/theta_maze.scad b/examples/maze/theta_maze.scad index e75aadfc..bca17141 100644 --- a/examples/maze/theta_maze.scad +++ b/examples/maze/theta_maze.scad @@ -2,19 +2,19 @@ use ; use ; use ; -rows = 16; -begining_columns = 8; +rows = 5; +beginning_number = 8; cell_width = 10; wall_thickness = 2; wall_height = 5; -theta_maze(rows, begining_columns, cell_width, wall_thickness, wall_height); +theta_maze(rows, beginning_number, cell_width, wall_thickness, wall_height); -module theta_maze(rows, begining_columns, cell_width, wall_thickness, wall_height) { +module theta_maze(rows, beginning_number, cell_width, wall_thickness, wall_height) { function vt_from_angle(theta, r) = [r * cos(theta), r * sin(theta)]; - maze = mz_theta_cells(rows, begining_columns); + maze = mz_theta_cells(rows, beginning_number); linear_extrude(wall_height) { for(rows = maze) { diff --git a/src/maze/mz_theta_cells.scad b/src/maze/mz_theta_cells.scad index bb693f01..c018152e 100644 --- a/src/maze/mz_theta_cells.scad +++ b/src/maze/mz_theta_cells.scad @@ -1,9 +1,9 @@ use <_impl/_mz_theta_cells.scad>; -function mz_theta_cells(rows, begining_columns, start = [0, 0], seed) = +function mz_theta_cells(rows, beginning_number, start = [0, 0], seed) = let( divided_ratio = 1.5, - before_traveled = config_nbrs(init_theta_maze(rows, begining_columns, divided_ratio)), + before_traveled = config_nbrs(init_theta_maze(rows, beginning_number, divided_ratio)), s = set_visited(before_traveled[start[0]][start[1]]) ) backtracker(