1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 03:34:42 +02:00
This commit is contained in:
Justin Lin
2019-10-11 18:15:29 +08:00
parent e42d70c11e
commit 16637b098c

View File

@@ -100,9 +100,11 @@ module cutted_klein_bottle(radius1, radius2, bottom_height, thickness, t_step, f
difference() { difference() {
union() { union() {
translate([radius2 + thickness, 0, 0]) translate([radius2 + thickness, 0, 0])
rotate([0, 90, 0]) klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn); rotate([0, 90, 0])
klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn);
translate([-radius2 - thickness, 0, 0]) translate([-radius2 - thickness, 0, 0])
rotate([0, -90, 0]) klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn); rotate([0, -90, 0])
klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn);
} }
@@ -111,7 +113,7 @@ module cutted_klein_bottle(radius1, radius2, bottom_height, thickness, t_step, f
w = 2 * h; w = 2 * h;
l = bottom_height * 4; l = bottom_height * 4;
translate([0, 0, h / 2]) translate([0, 0, h / 2])
cube([l, w, h], center = true); cube([l, w, h], center = true);
} }
} }
@@ -119,8 +121,4 @@ if(cut) {
cutted_klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn); cutted_klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn);
} else { } else {
klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn); klein_bottle(radius1, radius2, bottom_height, thickness, t_step, fn);
} }