TITLE: Identifying the two-hole torus with an octagon
QUESTION [12 upvotes]: I am aware that the 2-hole torus can be identified with the octagon with the equivalence relation as given in this picture: 
https://www.quantamagazine.org/wp-content/uploads/2012/09/Haken_sized_Figure02.jpg
However, today in a topology revision lecture, the lecturer said the 2-hole torus can be represented by the octagon with opposite sides identified. This is different to the picture, so was our lecturer wrong? If so what surface is given by the octagon with opposite sides identified?

REPLY [14 votes]: The space resulting from gluing opposite edges of an octagon naturally depends on the orientation of the gluing, but assuming "antipodal edges" are glued with the same orientation, as when building a torus from a square, the result is indeed a two-holed torus.

It's easy to see that

Two vertices that are endpoints of a dashed segment are identified, so all eight vertices are identified. Consequently, the interior angles of the octagon are joined cyclically; after identification, the vertex has a disk neighborhood.



Each edge is identified with the opposite edge, and no others, in a manner compatible with the orientation of the octagon.

It follows that the identification space is an orientable surface having a cellular decomposition with one vertex, four edges, and one $2$-cell. The Euler characteristic is $\chi = 1 - 4 + 1 = -2$. By the classification of surfaces, the glued octagon is a two-holed torus.
(Presumably the same conclusion can be reached by surgery, modifying the octagon to the "conventional" gluing, though I haven't checked carefully.)