A characterization of codimension 1 collapse under bounded curvature and diameter