Fix naming: replace `centroid` with `mean_of_pts`