Theorem (global Gauss-Bonnet with boundary)
Let $S$ be a surface with boundary in $\R^3$. Suppose $S$ consists of $n$ piecewise simple closed curves $α_1, \ldots, α_n$, mutually non-intersecting, parametrised by arc length, and positively oriented. Let $θ_1, \ldots, θ_p$ be the turning angles at the vertices of these curves.
Then $$ \begin{align*} \int_{S} K \d A + \sum_{i=1}^{n} \int_{α_i} k_g \d s + \sum_{i=1}^{p} θ_i = 2π\,χ(S) \end{align*} $$ where $K$ is the Gaussian curvature, $k_g$ is the geodesic curvature, and $χ(S)$ is the Euler characteristic.
Proof sketch: apply Bonnet's theorem on a triangulation.