An intrinsic description of shape