"Origin to Geometry" was also affected With very large meshes (report was about this failing for imported terrain data), we lack precision in `BKE_mesh_center_median`. First intuition was to just use doubles, but based on the work done in !132759 to get a more numerically stable way to compute a mean, we can use that instead. So this PR moves `compute_sum` into `blender::array_utils` and re-uses that for `BKE_mesh_center_median` Pull Request: https://projects.blender.org/blender/blender/pulls/138813