setTipElementsToPreserve takes into account the length of edges to prevent contraction. Code presenting strange behaviour while changing abruptly the phase marking in annular dev trail. Code not working yet.