1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 17:24:20 +02:00
This commit is contained in:
Justin Lin
2020-02-16 16:56:10 +08:00
parent 5d0a3e7710
commit a26895f101

View File

@@ -1,5 +1,4 @@
use <experimental/mz_blocks.scad>; use <square_maze.scad>;
use <experimental/mz_walls.scad>;
maze_rows = 8; maze_rows = 8;
block_width = 10; block_width = 10;
@@ -31,13 +30,6 @@ module pyramid_with_stairs(base_width, stairs_width, rows) {
} }
module step_pyramid_maze(maze_rows, block_width, stairs_width) { module step_pyramid_maze(maze_rows, block_width, stairs_width) {
blocks = mz_blocks(
[1, 1],
maze_rows, maze_rows
);
walls = mz_walls(blocks, maze_rows, maze_rows, block_width);
intersection() { intersection() {
pyramid_with_stairs( pyramid_with_stairs(
maze_rows * block_width, stairs_width, maze_rows); maze_rows * block_width, stairs_width, maze_rows);
@@ -48,14 +40,7 @@ module step_pyramid_maze(maze_rows, block_width, stairs_width) {
translate([-(maze_rows * block_width) / 2, -(maze_rows * block_width) / 2, 0]) translate([-(maze_rows * block_width) / 2, -(maze_rows * block_width) / 2, 0])
difference() { difference() {
for(wall = walls) { square_maze([1, 1], maze_rows, block_width, stairs_width);
for(i = [0:len(wall) - 2]) {
hull() {
translate(wall[i]) square(stairs_width, center = true);
translate(wall[i + 1]) square(stairs_width, center = true);
}
}
}
// entry // entry
translate([0, stairs_width]) translate([0, stairs_width])