My foremost advice is: reduce the problem’s complexity to a rotation of just a single mesh. Hint: any type of mesh will do - it doesn’t have to be the result of an extrusion. Then please describe, which result you want to achieve. A little sketch of the desired result would be ideal. Include the intended axis of rotation.
Thanks for your answer @vielzutun.ch !
Before I posted this question I tried to simplify it and because it worked for a single mesh I thought maybe the loop or the extrusion may cause the problem.
Anyway, I simplified it in this little fiddle for a simpler example:
I want to achieve to rotate the extrusion around its own/local z-axis.
Because the documentation says for rotateZ: “Rotates the object around z axis in local space.”.
I though this would be right method.
And rotating the shape before extruding it, is not possible as far as I know
In a generic case the intended axis of rotation at the center of the mesh does not coincide with the world z-axis, like your sketch indicates. You need to
translate the mesh by an x,y amount such that the mesh’s intended axis of rotation does coincide with the world z-axis.
Rotate as desired.
Revert the translation of step 1.
If you have an array of meshes, steps 1 and 3 have to be performed individually for each single mesh.
For better understanding of what’s going on, I also recommend interrupting the above three-step procedure after each step in order to view (and understand), what you have achieved so far.