1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-31 10:11:53 +02:00

refactor: use new maze functions/modules

This commit is contained in:
Justin Lin
2022-03-27 12:24:34 +08:00
parent 15478290e1
commit 9f3ecd0b3c
19 changed files with 93 additions and 117 deletions

View File

@@ -1,6 +1,6 @@
use <bend.scad>;
use <maze/mz_square_cells.scad>;
use <maze/mz_square_walls.scad>;
use <maze/mz_square.scad>;
use <maze/mz_squarewalls.scad>;
radius = 30;
height = 60;
@@ -35,12 +35,12 @@ module cylinder_maze() {
maze_rows = round(height / cell_width);
maze_columns = round(2 * 3.14159 * radius / cell_width);
maze_cells = mz_square_cells(
maze_cells = mz_square(
maze_rows, maze_columns,
x_wrapping = true
);
walls = mz_square_walls(maze_cells, maze_rows, maze_columns, cell_width, left_border = false);
walls = mz_squarewalls(maze_cells, cell_width, left_border = false);
leng_circumference = cell_width * maze_columns + wall_thickness;