From 25d26216e90e0841f34eee06683af092745df215 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 7 Dec 2019 17:14:27 +0800 Subject: [PATCH] offset to make space --- examples/soccer_polyhedron.scad | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/soccer_polyhedron.scad b/examples/soccer_polyhedron.scad index 871b9100..533ea1a6 100644 --- a/examples/soccer_polyhedron.scad +++ b/examples/soccer_polyhedron.scad @@ -3,31 +3,28 @@ module soccer_polyhedron(circumradius, spacing) { a = -37.377368; scale_f = 0.201774; - s = scale_f * spacing; + s = scale_f * spacing * 2; module pentagonal_pyramid() { pentagon_r = 1.701302; pentagon_h = 4.654877; - h_off = s * 3.381965; color("black") - translate([0, 0, -pentagon_h - h_off]) + translate([0, 0, -pentagon_h]) linear_extrude(pentagon_h, scale = 0.001) rotate(-36) - circle(pentagon_r, $fn = 5); + circle(pentagon_r - s / cos(36) , $fn = 5); } module hexagonal_pyramid() { hexagon_r = 2; hexagon_h = 4.534568; - h_off = s * 2.618034; - color("white") - translate([0, 0, -hexagon_h - h_off]) + translate([0, 0, -hexagon_h]) linear_extrude(hexagon_h, scale = 0.001) rotate(-30) - circle(hexagon_r, $fn = 6); + circle(hexagon_r - s / cos(30), $fn = 6); } module one_component_around_pentagonal_pyramid() {