centroid calculation

the centroid of the point cloud has been calculated