runtime: function to extract corridor from half-edge path.