Diamond pattern on surface

Hey everyone,

Im trying to get a diamond pattern on my surface but there is an error that I dont know how to solve. Please help me to fix it.

Thank you!
diamond_pattern.gh (35.5 KB)

diamond_pattern.3dm (3.4 MB)