Anemone problem with looping geometrical pattern

Hello,
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

geometrical_pattern_loop.gh (107.8 KB)

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

RectangleRecursiveSubdivision_re.gh (13.6 KB)

1 Like

Thank you very much!!!:heart_eyes:

Or like this:

rectangle_subdivision.gh (113.8 KB)

This is another version without surface split operations…

RectangleRecursiveSubdivision_reV2.gh (11.6 KB)

2 Likes