How to make Parametric grid flow nicely to windows and create an opening

Hi All,

I Am trying to develop this surface that has a grashopper diamond pattern on it,

the pattern itself works well however I want it to apply only to the green surface if that makes sense.

This is the surface

I apply the grashopper code to it and it covers the entire surface which is not what I’m after

Is it possible to only apply to the surface? I have tried to draw what i am describing in A

My other Question, Is it possible to some how have the diamonds change form to flow around the shapes nicer or get smaller towards the edges of them if that makes sense, see B?

I have attached the script that I have here, any help would be massively appreciated

Best Regards,

Geordan

diamondgrid.gh (537.3 KB)