How do I clean up weird self-intersections from "Offset Curve Loose"?

Cleanup

Just curious if there’s a method for dealing with cases where you wind up with a “Figure 8” from a loose curve offset.

In this case I’m using metaballs, but I’ve had the same thing happen offsetting voronoi cells, etc.

Cleanup.gh (11.9 KB)

Another thing I noticed: When I offset from metaballs, the offset will go “in” on some balls and “out” on others. I’m not sure what I’m seeing here.

Meta

Have a try Clipper plugin…



Cleanup_re.gh (12.9 KB)

@winduptoy

There is a workaround for this:
GH has an Offset Component that lets you offset in both directions →
Offset in Both directions. →
compare both curves with smaller / larger component →
Cull pattern so that you only have one Curve

Offset both sides.gh (6.9 KB)