I'm studying differential geometry through the book "Differential Geometry of Curves and Surfaces - Manfredo P. do Carmo", and I have a doubt in the demonstration of Poincare's Theorem.
POINCARE'S THEOREM. The sum of the indices of a diferentiable vector field $v$ with isolated singular points on a compact surface $S$ is equal to the Euler-Poincaré characteristic of the surface $S$.
The proof uses Gauss-Bonnet Theorem (local)
GAUSS-BONNET THEOREM (Local). Let $x$: $U\subset \mathbb{R}^2$ $\rightarrow$ $S$ be an orthogonal parametrization (that is, $\langle x_u,x_v\rangle = 0$), of an oriented surface $S$, where $U$ $\subset$ $\mathbb{R}^2$ is homeomorphic to an open disk and $x$ is compatible with the orientation of $S$. Let $R$ $\subset$ $x(U)$ be a simple region of $S$ and let $\alpha$: $I$ $\rightarrow$ $S$ be such that $\partial R$ $=$ $\alpha(I)$. Assume that a is positively oriented, parametrized by arc length $s$, and let $\alpha(s_0)$, . . . , $\alpha(s_k)$ and $\theta_0$, . . . ,$\theta_k$, be, respectively, the vertices and the external angles of $\alpha$. Then $$\sum_{i=0}^{k} \int_{s_{i}}^{s_{i+1}}k_g + \int \int_R K dS + \sum_{i=0}^{k} \theta_i = 2\pi$$ where $k_g(s)$ is the geodesic curvature of the regular arcs of a and $K$ is the Gaussian curvature of $S$.
To prove this Manfredo proposes the following solution:
Let $S$ $\subset$ $\mathbb{R}^3$ be an oriented, compact surface and $v$ a differentiable vector field with only isolated singular points. We remark that they are finite in number. Otherwise, by compactness, they have a limit point which is a nonisolated singular point. Let $\{x_{\alpha}\}$ be a family of orthogonal parametrizations compatible with the orientation of $S$. Let $\mathcal{T}$ be a triangulation of $S$ such that
- Every triangle $T$ $\in$ $\mathcal{T}$ is contained in some coordinate neighborhood of the family $\{x_\alpha\}$.
- Every $T$ $\in$ $\mathcal{T}$ contains at most one singular point.
- The boundary of every $T$ $\in$ $\mathcal{T}$ contains no singular points and is positively oriented.
If we apply GAUSS-BONNET THEOREM (Local) , sum up the results, and take into account that the edge of each $T$ $\in$ $\mathcal{T}$ appears twice with opposite orientations, we obtain
$$\int \int_S K d\sigma - 2\pi\sum_{i=0}^{k} I_i = 0 $$
where $I_i$ is the index of the singular point $p_i$, $i = 1$, . . . , $k.$ Joining this with the Gauss-Bonnet theorem (Global), we finally arrive at
$$ \sum_{i=0}^{k} I_i = \frac{1}{2\pi} \int \int_S K d\sigma = \chi (S). \quad \mbox{Q.E.D.} $$
My problem is in the part marked in bold above. If we use Gauss-Bonnet on $T$ $\in$ $\mathcal{T}$ we get
$$ \int_{\partial T} k_g + \int \int_{T} K dS + \sum_{i=0}^{2} \theta_{iT} = 2\pi$$
If we sum up the equation above for all $T$ $\in$ $\mathcal{T}$.
\begin{align*} \sum_{T \in \mathcal{T}}\left(\int_{\partial T} k_g + \int \int_{T} K dS + \sum_{i=0}^{2} \theta_{iT} \right) =& \sum_{T \in \mathcal{T}} 2\pi \\ \sum_{T \in \mathcal{T}} \int_{\partial T} k_g + \sum_{T \in \mathcal{T}} \int \int_{T} K dS + \sum_{T \in \mathcal{T}} \sum_{i=0}^{2} \theta_{iT} =& 2\pi \hspace{0.1cm}\# \mathcal{T} \\ 0+ \int \int_S K dS + \sum_{T \in \mathcal{T}}\sum_{i=0}^{2} \theta_{iT} - 2\pi \hspace{0.1cm}\# \mathcal{T} &= 0. \\ \end{align*} Where $\# \mathcal{T}$ $=$ number of elements of the set $\mathcal{T}$.
My Question: Why $$ \sum_{T \in \mathcal{T}}\sum_{i=0}^{2} \theta_{iT} - 2\pi \hspace{0.1cm}\# \mathcal{T} = 2 \pi \sum_{i=0}^{k} I_i \hspace{0.1 cm} ? $$