1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-28 08:50:30 +02:00
This commit is contained in:
Justin Lin
2020-12-20 18:15:11 +08:00
parent 3271a9e129
commit 4022f867ba
7 changed files with 26 additions and 26 deletions

View File

@@ -59,14 +59,14 @@ module heart_to_heart_wall(radius, length, angle, thickness) {
}
module heart_maze(cells, radius, ccells, levels, thickness = 1) {
function no_wall(cell) = get_wall_type(cell) == "NO_WALL";
function top_wall(cell) = get_wall_type(cell) == "TOP_WALL";
function right_wall(cell) = get_wall_type(cell) == "RIGHT_WALL";
function top_right_wall(cell) = get_wall_type(cell) == "TOP_RIGHT_WALL";
function no_wall(cell) = get_type(cell) == "NO_WALL";
function top_wall(cell) = get_type(cell) == "TOP_WALL";
function right_wall(cell) = get_type(cell) == "RIGHT_WALL";
function top_right_wall(cell) = get_type(cell) == "TOP_RIGHT_WALL";
function get_x(cell) = mz_square_get(cell, "x");
function get_y(cell) = mz_square_get(cell, "y");
function get_wall_type(cell) = mz_square_get(cell, "w");
function get_type(cell) = mz_square_get(cell, "t");
arc_angle = 360 / ccells;
r = radius / (levels + 1);

View File

@@ -37,14 +37,14 @@ module regular_polygon_to_polygon_wall(radius, length, angle, thickness, sides)
}
module regular_polygon_maze(radius, ccells, levels, thickness = 1, sides) {
function no_wall(cell) = get_wall_type(cell) == "NO_WALL";
function top_wall(cell) = get_wall_type(cell) == "TOP_WALL";
function right_wall(cell) = get_wall_type(cell) == "RIGHT_WALL";
function top_right_wall(cell) = get_wall_type(cell) == "TOP_RIGHT_WALL";
function no_wall(cell) = get_type(cell) == "NO_WALL";
function top_wall(cell) = get_type(cell) == "TOP_WALL";
function right_wall(cell) = get_type(cell) == "RIGHT_WALL";
function top_right_wall(cell) = get_type(cell) == "TOP_RIGHT_WALL";
function get_x(cell) = mz_square_get(cell, "x");
function get_y(cell) = mz_square_get(cell, "y");
function get_wall_type(cell) = mz_square_get(cell, "w");
function get_type(cell) = mz_square_get(cell, "t");
arc_angle = 360 / ccells;
r = radius / (levels + 1);