1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 03:34:42 +02:00
This commit is contained in:
Justin Lin
2019-09-03 17:24:04 +08:00
parent 8fc3939cae
commit 83a8382aea

View File

@@ -198,6 +198,7 @@ function try_routes_from(x, y, dir, maze, rows, columns, x_circular, y_circular)
: maze;
module draw_maze(rows, columns, blocks, block_width, wall_thickness, x_circular = false, y_circular = false) {
module draw_block(wall_type, block_width, wall_thickness) {
if(wall_type == UPPER_WALL || wall_type == UPPER_RIGHT_WALL) {
// draw a upper wall
@@ -214,7 +215,6 @@ module draw_block(wall_type, block_width, wall_thickness) {
}
}
module draw_maze(rows, columns, blocks, block_width, wall_thickness, x_circular = false, y_circular = false) {
for(block = blocks) {
// move a block to a right position.
translate([get_x(block) - 1, get_y(block) - 1] * block_width)