I've got the mesh below, is there any algorithm which can rearrange the points so the lines don't overlap anymore?