I refactored the line element so the base position now points to the center of the edge.