Sine wave like a crown gear

Hi all,

I’m trying to create a “sine” gear. I tried Sweep2 and Loft. Is there any way to make the green cylinder to follow the purple wave or any other way to make a guide?
What I’m trying is a sine wave that follows the red circle/surface.

Thank you,

Ludwig

Sine Wave Cylinder 20 Objects.3dm (449.4 KB) Crown-Gear_example

you can markfoci and get the center point of the circles, then do selpt, then crvthroughpt to generate a curve that goes through them.

then use ribbon offset to make the surface