From 60d56cf1880c38beee8ff6fa95e000d4ba6aa45a Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 29 May 2017 17:15:39 +0800 Subject: [PATCH] we don't need offset --- src/hexagons.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hexagons.scad b/src/hexagons.scad index ec24fa83..47041be6 100644 --- a/src/hexagons.scad +++ b/src/hexagons.scad @@ -15,11 +15,11 @@ module hexagons(radius, spacing, levels) { beginning_n = 2 * levels - 1; offset_x = radius * cos(30); offset_y = radius + radius * sin(30); + r_hexagon = radius - spacing / 2; module hexagon() { rotate(30) - offset(r = -spacing / 2) - circle(radius, $fn = 6); + circle(r_hexagon, $fn = 6); } module line_hexagons(n) {