Anemone problem with looping geometrical pattern

I have created a repeating geometrical pattern, but it is big and messy to do it by copy&paste. I have read I can use anemone to create a repetitive pattern, but I do not understand how it works. I am attaching the base code which needs to be repeated, and the final code done by copy&paste. Any suggestions how to organize it?
Thank you.

Attaching images and the code (107.8 KB)

Attached is an Anemone example for you. There could be other more elegant solutions.:smile: (13.6 KB)

1 Like

Thank you very much!!!:heart_eyes:

Or like this: (113.8 KB)

This is another version without surface split operations… (11.6 KB)