Modifying a polylines end points in Grasshopper

I have a list of closed polyline curves, these curves look planar but are NON PLANAR. The issue is that there seem to be too many end points. I am trying to sort of simplify them so its easier for multipipe to recognise the end points and add thickness to them, any suggestions? Perhaps finding the number of intersections/duplicates between points?

Bubble2.gh (68.1 KB)

(On the left is the current issue, the right would be the resolved version)

Multipipe example with thickened nodes

Example: Visually, it is a 4 sided polyline but it actually has 13 sides

Could you please provide only the file with the problematic curves? Many plugins are missing, and I can’t open the file you provided earlier properly. Thank you.

But that’s not really a good method.

Example1.gh (68.2 KB)

You may give it a try with Discontinuity, and fyi.

About the Discontinuity Grasshopper Online Document
Discontinuity.gh (70.3 KB)

These solutions work, thank you very much :slight_smile: