update segment edge references when merging vertices
updated 2d line offsetting