Use distance over mesh to determine the quality of the decomposition