//constants bg= 5; //anzahl waben in X tg= 5; //anzahl waben in Y h= 15; //hoehe a=4.9; // Wabenabstand d= a*1.06; //Wabendurchmesser Korrektur b=a*0.866*bg*2; //gesamtbreite t= a*0.5*tg*2; //gesamthöhe $fn=6; //hexagonal shape difference(){ translate([0,0,0])cube([b,t,h], center=false); for (x=[0:2:bg*2]){ for (y=[0:2:tg*2]){ translate([x*0.866*a,y*0.5*a,h/2])cylinder(d=d, h=h+0.02, center=true); translate([x*0.866*a+0.866*a,y*0.5*a+0.5*a,h/2])cylinder(d=d, h=h+0.02, center=true); echo(x,y); } //end y } //end x }