torus-triangulation.tex 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. \begin{tikzpicture}
  2. \node (a) at (0,0) {};
  3. \node (b) at (1,0) {};
  4. \node (c) at (1,1) {};
  5. \node (d) at (0,1) {};
  6. \coordinate (m) at ($(a)!0.5!(c)$);
  7. \coordinate (ab2) at ($(a)!0.5!(b)$);
  8. \coordinate (ab1) at ($(a)!0.5!(ab2)$);
  9. \coordinate (ab3) at ($(b)!0.5!(ab2)$);
  10. \coordinate (bc2) at ($(b)!0.5!(c)$);
  11. \coordinate (bc1) at ($(b)!0.5!(bc2)$);
  12. \coordinate (bc3) at ($(c)!0.5!(bc2)$);
  13. \coordinate (cd2) at ($(c)!0.5!(d)$);
  14. \coordinate (cd1) at ($(c)!0.5!(cd2)$);
  15. \coordinate (cd3) at ($(d)!0.5!(cd2)$);
  16. \coordinate (ad2) at ($(a)!0.5!(d)$);
  17. \coordinate (ad1) at ($(a)!0.5!(ad2)$);
  18. \coordinate (ad3) at ($(d)!0.5!(ad2)$);
  19. \draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
  20. %horizontal
  21. \draw (bc1.center) -- (ad1.center);
  22. \draw (bc2.center) -- (ad2.center);
  23. \draw (bc3.center) -- (ad3.center);
  24. %vertical
  25. \draw (ab1.center) -- (cd3.center);
  26. \draw (ab2.center) -- (cd2.center);
  27. \draw (ab3.center) -- (cd1.center);
  28. %diagonal
  29. \draw (ad3.center) -- (cd3.center);
  30. \draw (ad2.center) -- (cd2.center);
  31. \draw (ad1.center) -- (cd1.center);
  32. \draw (a.center) -- (c.center);
  33. \draw (ab1.center) -- (bc3.center);
  34. \draw (ab2.center) -- (bc2.center);
  35. \draw (ab3.center) -- (bc1.center);
  36. \begin{scope}[decoration={
  37. markings,
  38. mark=at position 0.6 with {\arrow{>}}}
  39. ]
  40. \draw[postaction={decorate}] (a.center) -- (b.center);
  41. \draw[postaction={decorate}] (d.center) -- (c.center);
  42. \end{scope}
  43. \begin{scope}[decoration={
  44. markings,
  45. mark=at position 0.55 with {\arrow{>>}}}
  46. ]
  47. \draw[postaction={decorate}] (b.center) -- (c.center);
  48. \draw[postaction={decorate}] (a.center) -- (d.center);
  49. \end{scope}
  50. \end{tikzpicture}