Remove Duplicate Polylines with tolerance

I have a bunch of polylines where I am trying to delete duplicate polylines within a set tolerance (maybe say 1mm tolerance between each control point).

Currently the method I can think of will be comparing the 2 angles between 3 segments of each polyline but this method will probably need to scripted. Will be great if anyone can suggest any other easier method towards this. Thanks in advance!


211126_REMOVE DUPLICATE POLYLINES.3dm (73.2 KB)

I don’t think this is a general solution, anyway take a look…


RemoveDupPolylines_re.gh (25.2 KB)

Thanks @HS_Kim! I think its a good enough way t compare in this case. :+1: