mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 06:47:46 +02:00
modify condition
This commit is contained in:
@@ -73,11 +73,11 @@ module build_hex_maze(y_cells, x_cells, maze_vector, cell_radius, wall_thickness
|
|||||||
module cell_inner_wall() {
|
module cell_inner_wall() {
|
||||||
if(style == "upper") {
|
if(style == "upper") {
|
||||||
upper_wall();
|
upper_wall();
|
||||||
if(x_cell % 2 != 0) {
|
|
||||||
up_right_wall();
|
|
||||||
}
|
|
||||||
} else if(style == "right") {
|
} else if(style == "right") {
|
||||||
right_walls();
|
up_right_wall();
|
||||||
|
if(x_cell % 2 != 0) {
|
||||||
|
down_right_wall();
|
||||||
|
}
|
||||||
} else if(x_cell % 2 != 0) {
|
} else if(x_cell % 2 != 0) {
|
||||||
up_right_wall();
|
up_right_wall();
|
||||||
}
|
}
|
||||||
@@ -138,8 +138,8 @@ module hex_maze_stereographic_projection(x_cells, cell_radius, wall_thickness, f
|
|||||||
build_hex_maze(y_cells, x_cells, maze_vector, cell_radius, wall_thickness);
|
build_hex_maze(y_cells, x_cells, maze_vector, cell_radius, wall_thickness);
|
||||||
|
|
||||||
if(shadow == "YES") {
|
if(shadow == "YES") {
|
||||||
color("black")
|
//color("black")
|
||||||
linear_extrude(wall_height)
|
//linear_extrude(wall_height)
|
||||||
translate([grid_w - square_w / 2, grid_h - square_w / 2, 0])
|
translate([grid_w - square_w / 2, grid_h - square_w / 2, 0])
|
||||||
build_hex_maze(y_cells, x_cells, maze_vector, cell_radius, wall_thickness);
|
build_hex_maze(y_cells, x_cells, maze_vector, cell_radius, wall_thickness);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user