mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-22 06:13:10 +02:00
format
This commit is contained in:
@@ -24,11 +24,12 @@ module build_ramp_maze(rows, columns, blocks, block_width, wall_thickness, wall_
|
||||
|
||||
hull() {
|
||||
translate(point1)
|
||||
linear_extrude(height, scale = top_scale)
|
||||
square(width, center = true);
|
||||
linear_extrude(height, scale = top_scale)
|
||||
square(width, center = true);
|
||||
|
||||
translate(point2)
|
||||
linear_extrude(height, scale = top_scale)
|
||||
square(width, center = true);
|
||||
linear_extrude(height, scale = top_scale)
|
||||
square(width, center = true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -23,13 +23,14 @@ module pyramid_maze(maze_rows, block_width, wall_thickness) {
|
||||
|
||||
intersection() {
|
||||
linear_extrude(leng * 2)
|
||||
translate([-half_leng, -half_leng]) build_square_maze(
|
||||
maze_rows,
|
||||
maze_rows,
|
||||
maze_blocks,
|
||||
block_width,
|
||||
wall_thickness
|
||||
);
|
||||
translate([-half_leng, -half_leng]) build_square_maze(
|
||||
maze_rows,
|
||||
maze_rows,
|
||||
maze_blocks,
|
||||
block_width,
|
||||
wall_thickness
|
||||
);
|
||||
|
||||
pyramid(leng + wall_thickness);
|
||||
}
|
||||
}
|
||||
|
@@ -20,8 +20,8 @@ module pyramid_with_stairs(base_width, stairs_width, rows) {
|
||||
for(j = [1:stairsteps]) {
|
||||
square_w = base_w - j * staircase_w;
|
||||
translate([0, 0, staircase_h * (j - 1)])
|
||||
linear_extrude(staircase_h)
|
||||
square([square_w, square_w], center = true);
|
||||
linear_extrude(staircase_h)
|
||||
square([square_w, square_w], center = true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,23 +46,23 @@ module step_pyramid_maze(maze_rows, block_width, stairs_width) {
|
||||
square([block_width * maze_rows + stairs_width, block_width * maze_rows + stairs_width], center = true);
|
||||
|
||||
translate([-(maze_rows * block_width) / 2, -(maze_rows * block_width) / 2, 0])
|
||||
difference() {
|
||||
build_square_maze(
|
||||
maze_rows,
|
||||
maze_rows,
|
||||
maze_blocks,
|
||||
block_width,
|
||||
stairs_width
|
||||
);
|
||||
difference() {
|
||||
build_square_maze(
|
||||
maze_rows,
|
||||
maze_rows,
|
||||
maze_blocks,
|
||||
block_width,
|
||||
stairs_width
|
||||
);
|
||||
|
||||
// entry
|
||||
translate([0, stairs_width])
|
||||
square(stairs_width, center = true);
|
||||
// entry
|
||||
translate([0, stairs_width])
|
||||
square(stairs_width, center = true);
|
||||
|
||||
// exit
|
||||
translate([maze_rows * block_width, maze_rows * block_width - stairs_width])
|
||||
square(stairs_width, center = true);
|
||||
}
|
||||
// exit
|
||||
translate([maze_rows * block_width, maze_rows * block_width - stairs_width])
|
||||
square(stairs_width, center = true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -27,14 +27,14 @@ module hex_maze_stereographic_projection(x_cells, cell_radius, wall_thickness, f
|
||||
maze_vector = go_maze(1, 1, starting_maze(y_cells, x_cells), y_cells, x_cells);
|
||||
|
||||
stereographic_extrude(square_w, $fn = fn)
|
||||
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);
|
||||
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);
|
||||
|
||||
if(shadow == "YES") {
|
||||
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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -34,8 +34,8 @@ module stereographic_projection_maze2(maze_rows, block_width, wall_thickness, fn
|
||||
|
||||
if(shadow == "YES") {
|
||||
color("black")
|
||||
linear_extrude(wall_height)
|
||||
maze();
|
||||
linear_extrude(wall_height)
|
||||
maze();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user