mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 10:42:57 +02:00
add part param
This commit is contained in:
@@ -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;
|
tau = 1.618034;
|
||||||
a = -37.377368;
|
a = -37.377368;
|
||||||
scale_f = 0.201774;
|
scale_f = 0.201774;
|
||||||
@@ -76,9 +76,11 @@ module soccer_polyhedron(circumradius, spacing, jigsaw_base = false) {
|
|||||||
|
|
||||||
scale(scale_f * circumradius) {
|
scale(scale_f * circumradius) {
|
||||||
half_soccer_polyhedron();
|
half_soccer_polyhedron();
|
||||||
rotate(36)
|
if(part == "ALL") {
|
||||||
mirror([0, 0, 1])
|
rotate(36)
|
||||||
half_soccer_polyhedron();
|
mirror([0, 0, 1])
|
||||||
|
half_soccer_polyhedron();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user