1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-22 14:23:23 +02:00

externalize maze

This commit is contained in:
Justin Lin
2019-10-06 09:29:22 +08:00
parent f3c39702ac
commit 9210fee4fc
2 changed files with 8 additions and 7 deletions

View File

@@ -0,0 +1 @@
use <>;

View File

@@ -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;
r = radius / (levels + 1);
maze = go_maze(1, 1,
starting_maze(cblocks, levels),
cblocks, levels, y_circular = true
);
difference() {
render() union() {
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() {
union() {
ellipse_extrude(height_of_heart / 2)
@@ -112,7 +112,7 @@ intersection() {
}
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)