Pattern Generation/ Perforation

Hello
welcome to the forum. Most of the time it is appreciated that you post on the forum what you have done.

From what I understand of this pattern it is rectangles with differents lengths.
image
Each rectangle is divided in rectangles or holes then some holes on the borders are not keep.

What is your algorithm ? What are your parameters ?