Fit surfaces/curves into bigger surface

Hi!

I’ve been struggling for way too long with something that feels quite straight-forward. I would like the four inner polylines (they’re closed, so can be seen as surfaces) to fit into the bigger polyline. So, fill out where it doesn’t reach, cut where it crosses the line and “float” towards eachother to fill up all the empty room. How should I go about to do this?

Thank you!
Kaj

Surface_fit.gh (4.7 KB)