mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-04 05:47:43 +02:00
remove option
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
leng = 30;
|
leng = 30;
|
||||||
leng_diff = 3;
|
leng_diff = 3;
|
||||||
min_leng = 2;
|
min_leng = 2;
|
||||||
model = "Both"; // [Cube, Base, Both]
|
model = "Cube"; // [Cube, Base]
|
||||||
|
|
||||||
module spiral_cube(leng, leng_diff, min_leng) {
|
module spiral_cube(leng, leng_diff, min_leng) {
|
||||||
thickness = leng_diff / 3;
|
thickness = leng_diff / 3;
|
||||||
@@ -80,11 +80,5 @@ if(model == "Cube") {
|
|||||||
spiral_cube(leng, leng_diff, min_leng);
|
spiral_cube(leng, leng_diff, min_leng);
|
||||||
} else if(model == "Base") {
|
} else if(model == "Base") {
|
||||||
base(leng);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user