`segmesh.py` should be updated to split the segments that are meshed, so that their upper edges exactly coincide with the top element edges.