It’s slightly more complicated when the curve/wall is not horizontal, as it was in at least three prior threads on this subject. I suggest that you look again more carefully at previous posts, like this one:
See white group: