Sorry, I forgot to add this.
for(z=[ 0 : 10 : 10 ])
translate([0,0,z])
for(a=[0 : 90 : 270 ])
rotate(a)
rotate ([90,0,0]) cylinder (h = 30, r=3, $fn=6);
But on the "translated" I would like to have an additional rotation around "Z"
Something like an additional "rotate(b)" but then the lowest cross is also getting this copy.
Am Sonntag, 19. April 2020, 16:02:26 CEST schrieb Ron Wheeler via Discuss:
> Translate the second up (+z) 20mm translate(0,0,20);
>
>
> On 2020-04-19 9:43 a.m., Snörre wrote:
> > Hello all,
> > I'm a newbe on openscad.
> > I want to copy a cylinder around Z then copy it upwards. That's working but
> > I cannot get a twist in.
> >
> > The first cylinder is:
> >
> > module Zylinder ()
> > { rotate ([90,0,0]) cylinder (h = 30, r=3 , $fn=6); }
> >
> > Then I copy it around Z:
> >
> > module FirstLayer()
> > { for(a=[0 : 90 : 270]) rotate(a) Zylinder(); }
> >
> > Until here it is working. I have 4 Cylinders like a cross.
> > But how can I copy the whole cross up let's say 20mm and twist it let's say
> > 30° so I have the copied one 30° "twisted"?
> >
> > Greets
> >
> >
> >
> > --
> > Sent from:
http://forum.openscad.org/> >
> > _______________________________________________
> > OpenSCAD mailing list
> >
[hidden email]
> >
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org>
>
--
Mit freundlichen Grüßen
Sören Schneider
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org