Extract overlapping offsetted curves from trimmed surface in rhino

Hello,

First of all, I apologize if the title is a bit unclear, but I couldn’t think of a better way to phrase it.

Is there a way to extract curves as shown on the picture below?

I think it has to do something with offsetting border curves on surface and then merging those that overlap?