Discrete and continuous bodies with affine structure