Compute centroid distance in finishing