We work in the real Hilbert space
Hs of Hermitian Hilbert-Schmidt operators and show that the entanglement witness which shows the maximal violation of a generalized Bell inequality (GBI) is a tangent functional to the convex set $S\ensuremath{\subset}{\mathcal{H}}_{s}$ of separable states. This violation equals the Euclidean distance in
Hs of the entangled state to S and thus entanglement, GBI, and tangent functional are only different aspects of the same geometric picture. This is explicitly illustrated in the example of two spins, where also a comparison with familiar Bell inequalities is presented.
The Bell inequalities stand at the cornerstone of the developments of quantum theory on both the foundational and applied side. The discussion started as a way to test whether the quantum description of reality is complete or not, but it developed in such a way that a new research area stemmed from it, namely quantum information. Far from being and exhausted topic, in this paper, we present a constructive and geometrically intuitive description of the local polytope and its facets in a bipartite Bell scenario with two dichotomic measurements per party.