Rolling of a body on a plane or a sphere: a geometric point of view