Rotating a surface to get a closed cylinder

Hello everyone,
I am trying to rotate a surface 360 degrees to get a closed round cylinder. However, I can’t get the body to close exactly, either I have a small gap (as if it doesn’t do the last step) or it is closed too far and it overlaps.

Does anyone have any ideas what I can do?

rotate function.gh (15.8 KB)

Many thanks and best regards
Tim


rotate_2024Nov19a.gh (9.9 KB)