fn link_segments_to_edges(axis: &mut Axis)
Edges get reordered as they’re built so we need to assign edge indices to segments in a second pass.