From b5a142e4b53d64a6d0146ab4970a10b85c240c07 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 24 Jun 2021 17:23:29 +0800 Subject: [PATCH] del unnecessary code --- examples/taiwan/spiral_cube.scad | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/taiwan/spiral_cube.scad b/examples/taiwan/spiral_cube.scad index c67d2268..903272b9 100644 --- a/examples/taiwan/spiral_cube.scad +++ b/examples/taiwan/spiral_cube.scad @@ -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); }