I need some help in making parametric waffle structures. (Image attached)

Do you guys have any idea how I can recreate models like these on SketchUp?
It’s been really bugging me for a while. Any help/suggestion would be highly appreciated!

There are many plugins that will help you here, e.g. Flowify (see example), Lattice Maker, …