How to apply triangle definition to a surface

Hello!

This is a grasshopper definition that I found on a thread from about a year ago. It is the pattern that I want, however, I can’t figure out how to apply this pattern to a surface to make it useable. I am not super experienced in grasshopper, but I have tried ‘map to surface’ and can’t seem to get it to work.

If anyone has any insite on how to apply this definition to a surface, that would be very appreciated!

TrianglePatternFading.gh (15.6 KB)

Test Triangle Pattern.3dm (53.6 KB)

Hey, Used lunchbox plugin to divide the surface. Maybe this approach would help. PFA the script
TrianglePatternFading.gh (18.1 KB)