Need help programming wind spinner

Here’s a link to the video about doing both open and closed geometry in one piece.