How to Rebuild Adjacent Polylines to Share Exact Edges and Points

I am working on a project where I have received a bunch of closed polylines representing adjacent regions. While these polylines are supposed to share edges and points, the points are not exactly the same, leading to slight misalignments.

I need to rebuild these polylines so that the shared edges and points are precisely the same, ensuring a seamless connection between adjacent regions.

Any pointers in right direction … seems rather simple … but am just totally blank how to approach it … Other then ‘closest points’ and move Pt to nearest when Distance is between 0 and a set tolerance of say 0.02. I tried fooling around with python for a solution, but to no avail. Any pointers?

Screenshot 2024-05-31 124614

map.gh (19.1 KB)


map_2024May31a.gh (26.8 KB)

Added slider to set CullPt ‘T’ (Tolerance):


map_2024May31b.gh (27.2 KB)

1 Like

smart and elegant. Seems so evident if some else shows you how :confounded: Thanks so much !