1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

del unnecessary code

This commit is contained in:
Justin Lin
2021-06-24 17:23:29 +08:00
parent ba89c31b17
commit b5a142e4b5

View File

@@ -37,11 +37,7 @@ module spiral_cube(leng, leng_diff, min_leng) {
translate([0, 0, -half_leng])
spiral_stack(leng)
translate([0, 0, thickness / 2])
cube([leng , leng, thickness], center = true);
translate([0, 0, 0.001])
linear_extrude(leng)
square(leng, center = true);
cube([leng , leng, thickness * 1.01], center = true);
}
}
@@ -84,8 +80,8 @@ if(model == "Cube") {
base(leng);
} else {
translate([0, 0, leng * sqrt(3) / 2 + leng / 15])
rotate([45, atan2(1, sqrt(2)), 0])
spiral_cube(leng, leng_diff, min_leng);
rotate([45, atan2(1, sqrt(2)), 0])
spiral_cube(leng, leng_diff, min_leng);
base(leng);
}