Altering pinch function to return all lengths of segments connecting
two ends, rather than total length.