Twisting Vertical Rib Structure for Waffle Structure

I had highlighted and grouped a green section of the grasshopper script. I need some help understanding why the twisting offseted lines are not lofting together or if there is a better way to create twisting vertical ribs. Another issue is the offset lines are kinda jaggety

9 Design Exploration Design Options Work In Progress.gh (131.0 KB)