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

add part param

This commit is contained in:
Justin Lin
2019-12-07 20:10:51 +08:00
parent e69ab760de
commit f9d4203a27

View File

@@ -1,4 +1,4 @@
module soccer_polyhedron(circumradius, spacing, jigsaw_base = false) {
module soccer_polyhedron(circumradius, spacing, jigsaw_base = false, part = "ALL") {
tau = 1.618034;
a = -37.377368;
scale_f = 0.201774;
@@ -76,9 +76,11 @@ module soccer_polyhedron(circumradius, spacing, jigsaw_base = false) {
scale(scale_f * circumradius) {
half_soccer_polyhedron();
rotate(36)
mirror([0, 0, 1])
half_soccer_polyhedron();
if(part == "ALL") {
rotate(36)
mirror([0, 0, 1])
half_soccer_polyhedron();
}
}
}