1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-30 18:00:01 +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 <polyline_join.scad>;
use <maze/mz_square_cells.scad>;
use <maze/mz_square_walls.scad>;
use <maze/mz_square.scad>;
use <maze/mz_squarewalls.scad>;
use <ptf/ptf_ring.scad>;
rows = 48;
@@ -14,12 +14,8 @@ leng = rows * cell_width;
radius = 0.5 * leng / PI;
a_step = 360 / leng;
cells = mz_square_cells(
rows, columns,
y_wrapping = true
);
walls = mz_square_walls(cells, rows, columns, cell_width, bottom_border = false);
cells = mz_square(rows, columns, y_wrapping = true);
walls = mz_squarewalls(cells, cell_width, bottom_border = false);
size = [columns * cell_width, rows * cell_width];
for(wall_pts = walls) {