1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-31 02:10:28 +02:00

move files

This commit is contained in:
Justin Lin
2019-09-08 14:56:09 +08:00
parent 10744c9337
commit ff2cf213da
9 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
include <line2d.scad>;
include <stereographic_extrude.scad>;
include <square_maze.scad>;
maze_rows = 10;
block_width = 40;
wall_thickness = 20;
fn = 24;
shadow = "YES"; // [YES, NO]
wall_height = 2;
module stereographic_projection_maze2(maze_rows, block_width, wall_thickness, fn, wall_height, shadow) {
maze_blocks = go_maze(
1, 1, // starting point
starting_maze(maze_rows, maze_rows),
maze_rows, maze_rows
);
length = block_width * maze_rows + wall_thickness;
module maze() {
translate([-block_width * maze_rows / 2, -block_width * maze_rows / 2, 0])
build_square_maze(
maze_rows,
maze_rows,
maze_blocks,
block_width,
wall_thickness
);
}
stereographic_extrude(shadow_side_leng = length, $fn = fn)
maze();
if(shadow == "YES") {
color("black")
linear_extrude(wall_height)
maze();
}
}
stereographic_projection_maze2(maze_rows, block_width, wall_thickness, fn, wall_height, shadow);