1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00

add mz_theta

This commit is contained in:
Justin Lin
2022-03-27 11:52:23 +08:00
parent 5f329649b6
commit 53ac475bbf

20
src/maze/mz_theta.scad Normal file
View File

@@ -0,0 +1,20 @@
/**
* mz_theta_cells.scad
*
* @copyright Justin Lin, 2020
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-mz_theta_cells.html
*
**/
use <_impl/_mz_theta_cells.scad>;
function mz_theta_cells(rings, beginning_number, start = [0, 0], seed) =
let(
divided_ratio = 1.5,
before_traveled = config_nbrs(init_theta_maze(rings, beginning_number, divided_ratio)),
s = set_visited(before_traveled[start.x][start.y])
)
backtracker(
update_maze(before_traveled, s), start, rings, seed);