How to select the centroid of rebar

Have you tried this approach: