Merge overlapping brep surfaces

I’m trying to script a way to ‘merge overlapping brep surfaces,’ but it’s not working, what am I doing wrong?
Thanks in advance for your response.

20181028 problem merge breps 00.gh (32.2 KB)

This could be one way, btw, just curious, why would you use GH for this? I don’t think GH is useful for this kind of work because it’s only an arbitrary geometrical problem that has to be resolved…
It would be better to solve it manually in Rhino.

20181028 problem merge breps 00_re.gh (31.3 KB)

3 Likes