mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
rename
This commit is contained in:
@@ -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])
|
translate([-(maze_rows * block_width) / 2, -(maze_rows * block_width) / 2, 0])
|
||||||
difference() {
|
difference() {
|
||||||
draw_maze(
|
build_square_maze(
|
||||||
maze_rows,
|
maze_rows,
|
||||||
maze_rows,
|
maze_rows,
|
||||||
maze_blocks,
|
maze_blocks,
|
||||||
|
@@ -197,8 +197,7 @@ function try_routes_from(x, y, dir, maze, rows, columns, x_circular, y_circular)
|
|||||||
// road closed so return maze directly
|
// road closed so return maze directly
|
||||||
: maze;
|
: maze;
|
||||||
|
|
||||||
|
module build_square_maze(rows, columns, blocks, block_width, wall_thickness, x_circular = false, y_circular = false) {
|
||||||
module draw_maze(rows, columns, blocks, block_width, wall_thickness, x_circular = false, y_circular = false) {
|
|
||||||
module build_block(wall_type, block_width, wall_thickness) {
|
module build_block(wall_type, block_width, wall_thickness) {
|
||||||
if(wall_type == UPPER_WALL || wall_type == UPPER_RIGHT_WALL) {
|
if(wall_type == UPPER_WALL || wall_type == UPPER_RIGHT_WALL) {
|
||||||
// draw a upper wall
|
// draw a upper wall
|
||||||
|
@@ -20,7 +20,7 @@ module stereographic_projection_maze2(maze_rows, block_width, wall_thickness, fn
|
|||||||
|
|
||||||
module maze() {
|
module maze() {
|
||||||
translate([-block_width * maze_rows / 2, -block_width * maze_rows / 2, 0])
|
translate([-block_width * maze_rows / 2, -block_width * maze_rows / 2, 0])
|
||||||
draw_maze(
|
build_square_maze(
|
||||||
maze_rows,
|
maze_rows,
|
||||||
maze_rows,
|
maze_rows,
|
||||||
maze_blocks,
|
maze_blocks,
|
||||||
|
Reference in New Issue
Block a user