1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 17:24:20 +02:00
This commit is contained in:
Justin Lin
2019-09-03 17:37:52 +08:00
parent 8f770f713b
commit 93c53d213d
3 changed files with 3 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ module pyramidal_staircase_maze(maze_rows, block_width, stairs_width) {
translate([-(maze_rows * block_width) / 2, -(maze_rows * block_width) / 2, 0])
difference() {
draw_maze(
build_square_maze(
maze_rows,
maze_rows,
maze_blocks,

View File

@@ -197,8 +197,7 @@ function try_routes_from(x, y, dir, maze, rows, columns, x_circular, y_circular)
// road closed so return maze directly
: maze;
module draw_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, x_circular = false, y_circular = false) {
module build_block(wall_type, block_width, wall_thickness) {
if(wall_type == UPPER_WALL || wall_type == UPPER_RIGHT_WALL) {
// draw a upper wall

View File

@@ -20,7 +20,7 @@ module stereographic_projection_maze2(maze_rows, block_width, wall_thickness, fn
module maze() {
translate([-block_width * maze_rows / 2, -block_width * maze_rows / 2, 0])
draw_maze(
build_square_maze(
maze_rows,
maze_rows,
maze_blocks,