Untrim Surface/Brep at a particular Edge in RC

Hi,

I am looking for a way to untrim Surface at the specified edge only via RhinoCommon, similar to native Untrim command.

Thanks in advance,
Dmitriy

maybe you can re-trim the ones you want to keep