Grid Pattern on irregular surface

I want to create a simple grid pattern on an irregular surface:

However, using lunchbox doesn’t fit the grid within the surface boundary:

Is there a way to trim the excess going outside the boundary?:

Irregular Surface Grid.gh (9.7 KB)