make hexagons bigger

This commit is contained in:
Michael Sippel 2024-10-07 21:24:15 +02:00
parent d4ad7cb4be
commit 9af9463dbf
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -81,17 +81,17 @@ module hexshape( h0=10 ) {
translate([0,0,0]) translate([0,0,0])
rotate([90,0,0]) rotate([90,0,0])
for( x = [0:5] ) { for( x = [0:5] ) {
for( y = [0:12] ) { for( y = [0:10] ) {
//translate([0, 0.8*(y*y) + 5 * y + 10,0]) //translate([0, 0.8*(y*y) + 5 * y + 10,0])
s0 = 0.5 + (y/24); s0 = 0.6 + (y/24);
s = s0*s0; s = (s0*s0);
rotate([0, 80-(x*60) * s ,0]) rotate([0, 80-(x*60) * s ,0])
translate([0,(x%2)*7+y*10, DIAM/2+0.5]) translate([0,(x%2)*7+y*13, DIAM/2+0.5])
difference() { difference() {
cylinder(h=h0, d=14*s, $fn=6); cylinder(h=h0, d=14*s, $fn=6);
translate([0,0,-1]) translate([0,0,-1])
cylinder(h=h0+3, d=10*s, $fn=6); cylinder(h=h0+3, d=8*s, $fn=6);
} }
} }
} }