mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
rename param
This commit is contained in:
@@ -2,19 +2,19 @@ use <maze/mz_theta_cells.scad>;
|
|||||||
use <maze/mz_theta_get.scad>;
|
use <maze/mz_theta_get.scad>;
|
||||||
use <hull_polyline2d.scad>;
|
use <hull_polyline2d.scad>;
|
||||||
|
|
||||||
rows = 16;
|
rows = 5;
|
||||||
begining_columns = 8;
|
beginning_number = 8;
|
||||||
cell_width = 10;
|
cell_width = 10;
|
||||||
wall_thickness = 2;
|
wall_thickness = 2;
|
||||||
wall_height = 5;
|
wall_height = 5;
|
||||||
|
|
||||||
theta_maze(rows, begining_columns, cell_width, wall_thickness, wall_height);
|
theta_maze(rows, beginning_number, cell_width, wall_thickness, wall_height);
|
||||||
|
|
||||||
module theta_maze(rows, begining_columns, cell_width, wall_thickness, wall_height) {
|
module theta_maze(rows, beginning_number, cell_width, wall_thickness, wall_height) {
|
||||||
|
|
||||||
function vt_from_angle(theta, r) = [r * cos(theta), r * sin(theta)];
|
function vt_from_angle(theta, r) = [r * cos(theta), r * sin(theta)];
|
||||||
|
|
||||||
maze = mz_theta_cells(rows, begining_columns);
|
maze = mz_theta_cells(rows, beginning_number);
|
||||||
|
|
||||||
linear_extrude(wall_height) {
|
linear_extrude(wall_height) {
|
||||||
for(rows = maze) {
|
for(rows = maze) {
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
use <_impl/_mz_theta_cells.scad>;
|
use <_impl/_mz_theta_cells.scad>;
|
||||||
|
|
||||||
function mz_theta_cells(rows, begining_columns, start = [0, 0], seed) =
|
function mz_theta_cells(rows, beginning_number, start = [0, 0], seed) =
|
||||||
let(
|
let(
|
||||||
divided_ratio = 1.5,
|
divided_ratio = 1.5,
|
||||||
before_traveled = config_nbrs(init_theta_maze(rows, begining_columns, divided_ratio)),
|
before_traveled = config_nbrs(init_theta_maze(rows, beginning_number, divided_ratio)),
|
||||||
s = set_visited(before_traveled[start[0]][start[1]])
|
s = set_visited(before_traveled[start[0]][start[1]])
|
||||||
)
|
)
|
||||||
backtracker(
|
backtracker(
|
||||||
|
Reference in New Issue
Block a user