Union self-intersecting mesh (without cocoon)

How to union a self-intersecting mesh?

Mesh union 01.gh (3.6 KB)

Not sur it works for that but give a look to

Thank you for your response.

The plugin does not work, unfortunately.
Another option I am considering is using a brep.
A. Is it possible to merge a self-intersecting brep?

Or I can make just easily XYZ curves, combine them and than make a mesh out of it.
However, I do not know how to make a mesh of only curves.
B. Are you familiar with that (curves to mesh)?