1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-mz_square_walls.md

34 lines
884 B
Markdown
Raw Normal View History

2020-12-23 08:08:44 +08:00
# mz_square_walls
It's a helper for creating wall data from maze cells. You can transform wall points for creating different types of mazes.
**Since:** 2.5
## Parameters
- `cells` : Maze cells.
- `rows` : The rows of the maze.
- `columns` : The columns of the maze.
- `cell_width` : The width of a cell.
- `left_border` : Default to `true`. Create the leftmost border of the maze.
- `bottom_border` : Default to `true`. Create the bottommost border of the maze.
## Examples
2022-06-06 13:11:46 +08:00
use <maze/mz_square_cells.scad>
use <maze/mz_square_walls.scad>
use <polyline2d.scad>
2020-12-23 08:08:44 +08:00
rows = 10;
columns = 10;
cell_width = 5;
wall_thickness = 2;
cells = mz_square_cells(rows, columns);
walls = mz_square_walls(cells, rows, columns, cell_width);
for(wall = walls) {
polyline2d(wall, wall_thickness, joinStyle = "JOIN_MITER");
}
2021-02-24 21:09:54 +08:00
![mz_square_walls](images/lib3x-mz_square_walls-1.JPG)