How to make this pattern parametric

Screenshot (1)

Hello all,

I have watched tutorials of hexagons being made and differentiated through attractor points, but is it possible to create a polygon that can change how many vertices/sides it has? Would appreciate help to get there.

Maybe something like this?

v_for_vornoi.gh (9.2 KB)

No. I have this in progress script that will maybe show what I am aiming for better. The screenshot is what I am aiming for. Customizable polygons in a grid that I can cull, but I don’t know how I can replace the square grid with the polygon I made.


220606 Rug Grasshopper Code.gh (30.3 KB)

I think I’m misunderstanding what you want. It sounds like you just want to map the polygons to the/a grid? Can’t you just create a vector 2 point and use it to move the polygons?

This should work for all polygons that feature a number sides that is divisible by 4 (e.g. 4, 8, 12, etc.).

It follows the exact same logic as my above example to randomly thin out the polygonal grid in one specific direction, here the world x-axis.

You should be way more specific when explaining what you want to achieve.

220606 Rug Grasshopper Code-rev.gh (14.2 KB)