1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 13:50:05 +01:00

update examples

This commit is contained in:
Justin Lin 2022-10-11 11:03:41 +08:00
parent ea60a5628a
commit f26629cb4c

View File

@ -13,8 +13,8 @@ It's a helper for initializing cell data of a maze.
## Examples
use <maze/mz_square_initialize.scad>
use <maze/mz_square_cells.scad>
use <maze/mz_square_walls.scad>
use <maze/mz_square.scad>
use <maze/mz_squarewalls.scad>
use <polyline2d.scad>
rows = 10;
@ -23,8 +23,8 @@ It's a helper for initializing cell data of a maze.
wall_thickness = 2;
init_cells = mz_square_initialize(rows, columns);
cells = mz_square_cells(rows, columns, init_cells = init_cells);
walls = mz_square_walls(cells, rows, columns, cell_width);
cells = mz_square(init_cells = init_cells);
walls = mz_squarewalls(cells, cell_width);
for(wall = walls) {
polyline2d(wall, wall_thickness, joinStyle = "JOIN_MITER");
@ -32,8 +32,8 @@ It's a helper for initializing cell data of a maze.
![mz_square_initialize](images/lib3x-mz_square_initialize-1.JPG)
use <maze/mz_square_cells.scad>
use <maze/mz_square_walls.scad>
use <maze/mz_square.scad>
use <maze/mz_squarewalls.scad>
use <maze/mz_square_initialize.scad>
use <polyline2d.scad>
@ -57,8 +57,8 @@ It's a helper for initializing cell data of a maze.
rows = len(mask);
columns = len(mask[0]);
init_cells = mz_square_initialize(mask = mask);
cells = mz_square_cells(rows, columns, start, init_cells);
walls = mz_square_walls(cells, rows, columns, cell_width, false, false);
cells = mz_square(start = start, init_cells = init_cells);
walls = mz_squarewalls(cells, cell_width, left_border = false, bottom_border = false);
// Maze
for(wall = walls) {