# Copy cylinder around Z then twist it up

5 messages
Open this post in threaded view
|

## Copy cylinder around Z then twist it up

 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
Open this post in threaded view
|

## Re: Copy cylinder around Z then twist it up

 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 ``` ```-- Ron Wheeler Artifact Software 438-345-3369 [hidden email]``` _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|