mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-23 06:43:10 +02:00
externalize maze
This commit is contained in:
1
examples/maze/heart2heart_maze.scad
Normal file
1
examples/maze/heart2heart_maze.scad
Normal file
@@ -0,0 +1 @@
|
|||||||
|
use <>;
|
@@ -57,15 +57,10 @@ module heart_to_heart_wall(radius, length, angle, thickness) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module heart_maze(radius, cblocks, levels, thickness = 1) {
|
module heart_maze(maze, radius, cblocks, levels, thickness = 1) {
|
||||||
arc_angle = 360 / cblocks;
|
arc_angle = 360 / cblocks;
|
||||||
r = radius / (levels + 1);
|
r = radius / (levels + 1);
|
||||||
|
|
||||||
maze = go_maze(1, 1,
|
|
||||||
starting_maze(cblocks, levels),
|
|
||||||
cblocks, levels, y_circular = true
|
|
||||||
);
|
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
render() union() {
|
render() union() {
|
||||||
for(i = [1 : levels + 1]) {
|
for(i = [1 : levels + 1]) {
|
||||||
@@ -101,6 +96,11 @@ module heart_maze(radius, cblocks, levels, thickness = 1) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
maze = go_maze(1, 1,
|
||||||
|
starting_maze(cblocks, levels),
|
||||||
|
cblocks, levels, y_circular = true
|
||||||
|
);
|
||||||
|
|
||||||
intersection() {
|
intersection() {
|
||||||
union() {
|
union() {
|
||||||
ellipse_extrude(height_of_heart / 2)
|
ellipse_extrude(height_of_heart / 2)
|
||||||
@@ -112,7 +112,7 @@ intersection() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
linear_extrude(height_of_heart, center = true)
|
linear_extrude(height_of_heart, center = true)
|
||||||
heart_maze(radius_of_heart, cblocks, levels, wall_thickness);
|
heart_maze(maze, radius_of_heart, cblocks, levels, wall_thickness);
|
||||||
}
|
}
|
||||||
|
|
||||||
linear_extrude(wall_thickness * 2, center = true)
|
linear_extrude(wall_thickness * 2, center = true)
|
||||||
|
Reference in New Issue
Block a user