A characterization of the barycentre of masses with convex compact support