diff --git a/examples/soccer_polyhedron/soccer_jigsaw.scad b/examples/soccer_polyhedron/soccer_jigsaw.scad index 23e77e39..6738c22a 100644 --- a/examples/soccer_polyhedron/soccer_jigsaw.scad +++ b/examples/soccer_polyhedron/soccer_jigsaw.scad @@ -1,15 +1,22 @@ use ; +style = "POLYHEDRON"; // [SPHERE, POLYHEDRON] r = 30; thickness = 2.5; -spacing = 0.4; +spacing = 0.3; half = true; flat_inner = true; color("gold") intersection() { difference() { - sphere(r); + if(style == "SPHERE") { + sphere(r); + } + else { + soccer_polyhedron(r, spacing = 0); + } + if(flat_inner) { soccer_polyhedron(r - thickness, spacing = 0); }