I believe another strategy would consist in treating the larger rectangle as a polygon with inner holes (the convex polygons) and compute its “straight skeleton”. A “medial axis” could be then retrieved by removing the branches touching the inner polygons.
Unfortunately I don’t know of a robust Straight Skeleton component that would handle polygons with holes.
Any ideas or suggestions would be greatly appreciated !
One question: I am trying to simplify the polylines in order to get straighter, less curvy, bordering lines. What would be the most appropriate way to do this in grasshopper ?
I have tried with the Reduce component but get some strange artifacts: