Openscad "flower" from hexagons

143 views Asked by At

I want to make a "flower" from hexagons in OpensCAD (like in the photo inserted, but without the center one, only that 6 around). I think that it has to be done with for loop, but i don't really understand how.

Im trying to make a grid from hexagons, but without the center one.

1

There are 1 answers

0
chrslg On
R=10;
h=1;
gap=1;
for(i=[0:60:359])
    rotate([0,0,i]) translate([0, R*sqrt(3)+gap,0]) cylinder(r=R, h=h, $fn=6);

enter image description here

The main trick here is that a cylinder with $fn=6 is an hexagon.

The rest (translating first, then rotating around z axis) is the same as my answer to your other question. I expect you've read my explanations there, even tho I never got any feedback.