How to create some pattern on the polysurface

I try to creater some lunchbox pattern on these surfaces, but finally I make some polysurfaces…I don’t know how to fix
surface pattern.gh (40.9 KB)


? Can anybody help me?Thank you!

Your curves and referenced geometry aren’t there - you need to Internalise your data.
https://hopific.com/how-to-internalize-data-in-grasshopper/