mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 10:42:57 +02:00
add doc
This commit is contained in:
BIN
docs/images/lib2x-mz_hex_walls-1.JPG
Normal file
BIN
docs/images/lib2x-mz_hex_walls-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
34
docs/lib2x-mz_hex_walls.md
Normal file
34
docs/lib2x-mz_hex_walls.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# mz_hex_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_radius` : The radius 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_hex_walls.scad>;
|
||||
use <hull_polyline2d.scad>;
|
||||
|
||||
rows = 10;
|
||||
columns = 12;
|
||||
cell_width = 5;
|
||||
wall_thickness = 2;
|
||||
|
||||
cells = mz_square_cells(rows, columns);
|
||||
walls = mz_hex_walls(cells, rows, columns, cell_width);
|
||||
|
||||
for(wall = walls) {
|
||||
hull_polyline2d(wall, wall_thickness, $fn = 24);
|
||||
}
|
||||
|
||||

|
Reference in New Issue
Block a user