I have been tinkering with offsets and intersections for a while now. I realised I need something faster than combining closed regions and I need clean curves so neither of these work as a solution:
Basically, what I want is to get rid of these stray segments, manually crossed out in red.
I can fairly consistently filter these out by segment length, though I do need to preserve the horizontal segments to the right (short segments that are the result of other intersections):
There is one method to solve this problem: each curve that I need to remove is in between two sets of offset curves: the original offset and the offset curves that intersect. If i can test for midpoint inclusion of each curve to be within two sets of offsets, I can safely remove it.
The segments I need to keep are only on the original offset and are not inside a set of offsets.
So I was tinkering with Curve Side and Point in curve.