From 113a7f876cc16329a347cf91b3905fe03aacd57f Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 4 Sep 2019 08:25:05 +0800 Subject: [PATCH] rename --- examples/square_maze.scad | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/square_maze.scad b/examples/square_maze.scad index 61fedf7c..ee786564 100644 --- a/examples/square_maze.scad +++ b/examples/square_maze.scad @@ -197,7 +197,7 @@ function try_routes_from(x, y, dir, maze, rows, columns, x_circular, y_circular) // road closed so return maze directly : maze; -module build_square_maze(rows, columns, blocks, block_width, wall_thickness, x_circular = false, y_circular = false) { +module build_square_maze(rows, columns, blocks, block_width, wall_thickness, left_border = true, bottom_border = true) { module build_block(wall_type, block_width, wall_thickness) { if(wall_type == UPPER_WALL || wall_type == UPPER_RIGHT_WALL) { // draw a upper wall @@ -224,12 +224,11 @@ module build_square_maze(rows, columns, blocks, block_width, wall_thickness, x_c ); } - // the leftmost wall - if(!x_circular) { + if(left_border) { line2d([0, 0], [0, block_width * rows], wall_thickness); } - // the lowermost wall - if(!y_circular) { + + if(bottom_border) { line2d([0, 0], [block_width * columns, 0], wall_thickness); } } \ No newline at end of file