1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

modify condition

This commit is contained in:
Justin Lin
2019-09-03 20:37:00 +08:00
parent 93c53d213d
commit e6fe09c649

View File

@@ -73,11 +73,11 @@ module build_hex_maze(y_cells, x_cells, maze_vector, cell_radius, wall_thickness
module cell_inner_wall() {
if(style == "upper") {
upper_wall();
if(x_cell % 2 != 0) {
up_right_wall();
}
} else if(style == "right") {
right_walls();
up_right_wall();
if(x_cell % 2 != 0) {
down_right_wall();
}
} else if(x_cell % 2 != 0) {
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);
if(shadow == "YES") {
color("black")
linear_extrude(wall_height)
//color("black")
//linear_extrude(wall_height)
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);
}