1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-26 16:04:46 +02:00

change param position

This commit is contained in:
Justin Lin
2020-12-18 15:19:38 +08:00
parent d4d87ac545
commit f33cb95d72
15 changed files with 5 additions and 21 deletions

View File

@@ -36,7 +36,6 @@ module cylinder_maze() {
maze_columns = round(2 * 3.14159 * radius / block_width); maze_columns = round(2 * 3.14159 * radius / block_width);
maze_blocks = mz_square_blocks( maze_blocks = mz_square_blocks(
[1, maze_rows],
maze_rows, maze_columns, maze_rows, maze_columns,
x_wrapping = true x_wrapping = true
); );

View File

@@ -32,7 +32,6 @@ module heart_base(name, font_name, font_size, radius, ring_thickness, tip_r_of_h
module heart2heart_maze(names, font_name, font_size, radius_of_heart, tip_r_of_heart, wall_thickness, cblocks, levels, spacing) { module heart2heart_maze(names, font_name, font_size, radius_of_heart, tip_r_of_heart, wall_thickness, cblocks, levels, spacing) {
maze = mz_square_blocks( maze = mz_square_blocks(
[1, 1],
cblocks, levels, y_wrapping = true cblocks, levels, y_wrapping = true
); );

View File

@@ -107,7 +107,6 @@ module heart_maze(maze, radius, cblocks, levels, thickness = 1) {
} }
maze = mz_square_blocks( maze = mz_square_blocks(
[1, 1],
cblocks, levels, y_wrapping = true cblocks, levels, y_wrapping = true
); );

View File

@@ -30,8 +30,7 @@ module maze_masking(start, mask, block_width, wall_thickness, wall_height, base_
columns = len(mask[0]); columns = len(mask[0]);
blocks = mz_square_blocks( blocks = mz_square_blocks(
start, rows, columns, start,
rows, columns,
mz_square_initialize(mask = mask) mz_square_initialize(mask = mask)
); );

View File

@@ -15,7 +15,6 @@ radius = 0.5 * leng / PI;
a_step = 360 / leng; a_step = 360 / leng;
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns, rows, columns,
y_wrapping = true y_wrapping = true
); );

View File

@@ -5,10 +5,9 @@ use <maze/mz_square_walls.scad>;
use <ptf/ptf_circle.scad>; use <ptf/ptf_circle.scad>;
use <noise/nz_perlin2.scad>; use <noise/nz_perlin2.scad>;
module noisy_circle_maze(start, r_blocks, block_width, wall_thickness, origin_offset, noisy_factor) { module noisy_circle_maze(r_blocks, block_width, wall_thickness, origin_offset, noisy_factor) {
double_r_blocks = r_blocks * 2; double_r_blocks = r_blocks * 2;
blocks = mz_square_blocks( blocks = mz_square_blocks(
start,
double_r_blocks, double_r_blocks double_r_blocks, double_r_blocks
); );
@@ -35,7 +34,6 @@ module noisy_circle_maze(start, r_blocks, block_width, wall_thickness, origin_of
} }
noisy_circle_maze( noisy_circle_maze(
start = [1, 1],
r_blocks = 8, r_blocks = 8,
block_width = 5, block_width = 5,
wall_thickness = 2, wall_thickness = 2,

View File

@@ -31,7 +31,6 @@ module pyramid_hex_maze(columns, cell_radius, wall_thickness) {
pyramid_height = square_w / sqrt(2); pyramid_height = square_w / sqrt(2);
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns rows, columns
); );

View File

@@ -50,7 +50,6 @@ module regular_polygon_maze(radius, cblocks, levels, thickness = 1, sides) {
r = radius / (levels + 1); r = radius / (levels + 1);
maze = mz_square_blocks( maze = mz_square_blocks(
[1, 1],
cblocks, levels, y_wrapping = true cblocks, levels, y_wrapping = true
); );

View File

@@ -52,7 +52,6 @@ module sphere_maze() {
size = [rows * block_width, columns * block_width + pole_offset * 2]; size = [rows * block_width, columns * block_width + pole_offset * 2];
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns, rows, columns,
y_wrapping = true y_wrapping = true
); );

View File

@@ -1,9 +1,8 @@
use <maze/mz_square_blocks.scad>; use <maze/mz_square_blocks.scad>;
use <maze/mz_square_walls.scad>; use <maze/mz_square_walls.scad>;
module square_maze(start, rows, block_width, wall_thickness) { module square_maze(rows, block_width, wall_thickness) {
blocks = mz_square_blocks( blocks = mz_square_blocks(
start,
rows, rows rows, rows
); );
@@ -20,7 +19,6 @@ module square_maze(start, rows, block_width, wall_thickness) {
} }
square_maze( square_maze(
start = [1, 1],
rows = 10, rows = 10,
block_width = 2, block_width = 2,
wall_thickness = 1 wall_thickness = 1

View File

@@ -25,7 +25,6 @@ module hex_maze_stereographic_projection(columns, cell_radius, wall_thickness, f
// create a maze // create a maze
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns rows, columns
); );

View File

@@ -15,7 +15,6 @@ radius = 0.5 * leng / PI;
a_step = 360 / leng; a_step = 360 / leng;
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns, rows, columns,
x_wrapping = true, y_wrapping = true x_wrapping = true, y_wrapping = true
); );

View File

@@ -13,7 +13,6 @@ axis = "X_AXIS"; // [X_AXIS, Y_AXIS]
// $fn = 24; // $fn = 24;
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns rows, columns
); );

View File

@@ -7,7 +7,6 @@ use <../util/dedup.scad>;
function mz_hamiltonian(rows, columns, start, seed) = function mz_hamiltonian(rows, columns, start, seed) =
let( let(
blocks = mz_square_blocks( blocks = mz_square_blocks(
[1, 1],
rows, columns, rows, columns,
seed = seed seed = seed
), ),

View File

@@ -1,7 +1,7 @@
use <_impl/_mz_blocks_impl.scad>; use <_impl/_mz_blocks_impl.scad>;
use <mz_square_initialize.scad>; use <mz_square_initialize.scad>;
function mz_square_blocks(start, rows, columns, maze, x_wrapping = false, y_wrapping = false, seed) = function mz_square_blocks(rows, columns, start = [1, 1], maze, x_wrapping = false, y_wrapping = false, seed) =
go_maze( go_maze(
start[0], start[1], // starting point start[0], start[1], // starting point
is_undef(maze) ? mz_square_initialize(rows, columns) : maze, is_undef(maze) ? mz_square_initialize(rows, columns) : maze,