Source: https://perso.liris.cnrs.fr/gilles.gesquiere/Teaching/Imagina/CM_08_surfaces.pdf