Rhino 7 API support for waffle pattern?

Hello Team,
I have been looking for supported API on [Rhino - API References](https://developer API reference page) for creating the following patterns.

Is there any API support provided by Rhino to generate this pattern ?
Is there are no API’s available how can achieve this pattern’s programmatically using rhino sdk ?
If not rhino sdk then can we achieve it using grasshopper ?

Looking for answers,
Happy learning,
Thank you…