The previous fix forgot the case where there is an intermediate edge and everything isn't in one plane.