mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
add doc
This commit is contained in:
@@ -249,7 +249,7 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp
|
||||
|
||||
- [mz_square_cells](https://openhome.cc/eGossip/OpenSCAD/lib2x-mz_square_cells.html)
|
||||
- [mz_square_get](https://openhome.cc/eGossip/OpenSCAD/lib2x-mz_square_get.html)
|
||||
- mz_square_walls
|
||||
- [mz_square_walls](https://openhome.cc/eGossip/OpenSCAD/lib2x-mz_square_walls.html)
|
||||
- mz_hex_walls
|
||||
- mz_square_initialize
|
||||
- mz_hamiltonian
|
||||
|
BIN
docs/images/lib2x-mz_square_walls-1.JPG
Normal file
BIN
docs/images/lib2x-mz_square_walls-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
34
docs/lib2x-mz_square_walls.md
Normal file
34
docs/lib2x-mz_square_walls.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# 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
|
||||
|
||||
use <maze/mz_square_cells.scad>;
|
||||
use <maze/mz_square_walls.scad>;
|
||||
use <polyline2d.scad>;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||

|
@@ -1,3 +1,13 @@
|
||||
/**
|
||||
* mz_square_walls.scad
|
||||
*
|
||||
* @copyright Justin Lin, 2020
|
||||
* @license https://opensource.org/licenses/lgpl-3.0.html
|
||||
*
|
||||
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-mz_square_walls.html
|
||||
*
|
||||
**/
|
||||
|
||||
use <../util/dedup.scad>;
|
||||
use <_impl/_mz_square_walls_impl.scad>;
|
||||
|
||||
|
Reference in New Issue
Block a user