1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-16 03:53:35 +02:00

remove option

This commit is contained in:
Justin Lin 2019-09-15 08:45:58 +08:00
parent bc8bf7f67b
commit 538ed7b38e

View File

@ -1,7 +1,7 @@
leng = 30;
leng_diff = 3;
min_leng = 2;
model = "Both"; // [Cube, Base, Both]
model = "Cube"; // [Cube, Base]
module spiral_cube(leng, leng_diff, min_leng) {
thickness = leng_diff / 3;
@ -80,11 +80,5 @@ if(model == "Cube") {
spiral_cube(leng, leng_diff, min_leng);
} else if(model == "Base") {
base(leng);
} else {
half_leng = leng / 2;
rotate([45, atan2(1, sqrt(2)), 0])
spiral_cube(leng, leng_diff, min_leng);
translate([0, 0, -half_leng * sqrt(3) - leng / 15])
base(leng);
}
}