Combine edges that share an endpoint and slope into longer ones.
Large number of short edges to merge.
Smaller number of long edges.
Combine edges that share an endpoint and slope into longer ones.