mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-16 21:58:26 +01:00
update examples
This commit is contained in:
parent
ea60a5628a
commit
f26629cb4c
@ -13,8 +13,8 @@ It's a helper for initializing cell data of a maze.
|
|||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
use <maze/mz_square_initialize.scad>
|
use <maze/mz_square_initialize.scad>
|
||||||
use <maze/mz_square_cells.scad>
|
use <maze/mz_square.scad>
|
||||||
use <maze/mz_square_walls.scad>
|
use <maze/mz_squarewalls.scad>
|
||||||
use <polyline2d.scad>
|
use <polyline2d.scad>
|
||||||
|
|
||||||
rows = 10;
|
rows = 10;
|
||||||
@ -23,8 +23,8 @@ It's a helper for initializing cell data of a maze.
|
|||||||
wall_thickness = 2;
|
wall_thickness = 2;
|
||||||
|
|
||||||
init_cells = mz_square_initialize(rows, columns);
|
init_cells = mz_square_initialize(rows, columns);
|
||||||
cells = mz_square_cells(rows, columns, init_cells = init_cells);
|
cells = mz_square(init_cells = init_cells);
|
||||||
walls = mz_square_walls(cells, rows, columns, cell_width);
|
walls = mz_squarewalls(cells, cell_width);
|
||||||
|
|
||||||
for(wall = walls) {
|
for(wall = walls) {
|
||||||
polyline2d(wall, wall_thickness, joinStyle = "JOIN_MITER");
|
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)
|
![mz_square_initialize](images/lib3x-mz_square_initialize-1.JPG)
|
||||||
|
|
||||||
use <maze/mz_square_cells.scad>
|
use <maze/mz_square.scad>
|
||||||
use <maze/mz_square_walls.scad>
|
use <maze/mz_squarewalls.scad>
|
||||||
use <maze/mz_square_initialize.scad>
|
use <maze/mz_square_initialize.scad>
|
||||||
use <polyline2d.scad>
|
use <polyline2d.scad>
|
||||||
|
|
||||||
@ -57,8 +57,8 @@ It's a helper for initializing cell data of a maze.
|
|||||||
rows = len(mask);
|
rows = len(mask);
|
||||||
columns = len(mask[0]);
|
columns = len(mask[0]);
|
||||||
init_cells = mz_square_initialize(mask = mask);
|
init_cells = mz_square_initialize(mask = mask);
|
||||||
cells = mz_square_cells(rows, columns, start, init_cells);
|
cells = mz_square(start = start, init_cells = init_cells);
|
||||||
walls = mz_square_walls(cells, rows, columns, cell_width, false, false);
|
walls = mz_squarewalls(cells, cell_width, left_border = false, bottom_border = false);
|
||||||
|
|
||||||
// Maze
|
// Maze
|
||||||
for(wall = walls) {
|
for(wall = walls) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user