1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-08 07:46:39 +02:00

we don't need offset

This commit is contained in:
Justin Lin
2017-05-29 17:15:39 +08:00
parent 5d41d61ec0
commit 60d56cf188

View File

@@ -15,11 +15,11 @@ module hexagons(radius, spacing, levels) {
beginning_n = 2 * levels - 1; beginning_n = 2 * levels - 1;
offset_x = radius * cos(30); offset_x = radius * cos(30);
offset_y = radius + radius * sin(30); offset_y = radius + radius * sin(30);
r_hexagon = radius - spacing / 2;
module hexagon() { module hexagon() {
rotate(30) rotate(30)
offset(r = -spacing / 2) circle(r_hexagon, $fn = 6);
circle(radius, $fn = 6);
} }
module line_hexagons(n) { module line_hexagons(n) {