From 082689db2a6af8f03188669fcf6cdd54fb8329ad Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 8 Dec 2019 07:36:02 +0800 Subject: [PATCH] add style param --- examples/soccer_polyhedron/soccer_jigsaw.scad | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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); }