We often define torus or protective map by some standard gluing of edges (quotient map) of polygon. But how to prove that the image of this quotient map is indeed a 2-manifold (Hausdorff, second countable and locally homeomorphic to unit disc)?
To ask it in a clearer way, assume $P$ is a polygon with even number of edges, and the edges are pairwise glued together by the quotient map. Then how to prove the image is a surface?