Having trouble with the trim with regions command

hi, i have been trying to model a pavilion using deluney mesh for the structure and some grid distortion for the skin, i have achieved it by using each plane on a deluney mesh and the grid distortion within, i want to trim the curves to the edges of the constructed mesh but the trim region pops up orange with “1. Input parameter Region failed to collect data” can someone tell how to do it in a simpler way or how to fix it.

modell.3dm (77.1 KB)
pavillion.gh (19.0 KB)

Interface Name: Rhinoceros 7.30 - Corporate, build 2023-06-12 - (compiled Jun 12 2023)