mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-31 02:10:28 +02:00
move files
This commit is contained in:
42
examples/maze/stereographic_square_maze.scad
Normal file
42
examples/maze/stereographic_square_maze.scad
Normal 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);
|
Reference in New Issue
Block a user