Waffle structure with curve

I learned how to make a grasshopper definition to make a waffle wall like the first picture.


Now I want to make the same but I want one of the contours to be curved like this:


How can I do that?