Move line endpoints to average point

Hi, a have a bunch of lines which sometimes do not meet. What i tried to do is to find the nearest points, group them and generate the average point of the pointgroup. The missing step for now is to replace all the endpoints with the new average point and generate new lines, or move the endpoints to the new point. I googled around and searched this forum but couldn’t find anything. I have the feeling that it should be fairly easy, but i cant figure it out… Maybe my approach of grouping them is wrong? (52.9 KB)

You already know which indices need to be replaced so you don’t need to use the Replace Members component. (57.3 KB)


Thank you so much. You made my day better :blush:

1 Like