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:
20
src/maze/mz_theta.scad
Normal file
20
src/maze/mz_theta.scad
Normal 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);
|
Reference in New Issue
Block a user