1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/examples/maze/square_maze.scad
2022-06-06 13:11:46 +08:00

19 lines
409 B
OpenSCAD

use <maze/mz_square.scad>
use <maze/mz_squarewalls.scad>
use <polyline_join.scad>
module square_maze(rows, cell_width, wall_thickness) {
cells = mz_square(rows, rows);
walls = mz_squarewalls(cells, cell_width);
for(wall = walls) {
polyline_join(wall)
square(wall_thickness, center = true);
}
}
square_maze(
rows = 10,
cell_width = 2,
wall_thickness = 1
);