torus-triangulation-minimal.tex 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. \coordinate (corner1) at ($(a)!0.25!(bc3)$);
  20. \coordinate (corner2) at ($(c)!0.25!(ad1)$);
  21. \draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
  22. %horizontal
  23. \draw (a.center) -- (bc3.center);
  24. \draw (cd3.center) -- (ad3.center);
  25. \draw (ab3.center) -- (bc1.center);
  26. \draw (cd3.center) -- (ad1.center);
  27. \draw (ab3.center) -- (bc3.center);
  28. \draw (ab1.center) -- (corner1.center);
  29. \draw (ad1.center) -- (corner1.center);
  30. \draw (ab3.center) -- (corner1.center);
  31. \draw (c.center) -- (corner2.center);
  32. \draw (cd1.center) -- (corner2.center);
  33. \draw (bc3.center) -- (corner2.center);
  34. \draw (cd3.center) -- (corner2.center);
  35. \draw (corner1.center) -- (corner2.center);
  36. \draw (ad1.center) -- (corner2.center);
  37. \begin{scope}[decoration={
  38. markings,
  39. mark=at position 0.6 with {\arrow{>}}}
  40. ]
  41. \draw[postaction={decorate}] (a.center) -- (b.center);
  42. \draw[postaction={decorate}] (d.center) -- (c.center);
  43. \end{scope}
  44. \begin{scope}[decoration={
  45. markings,
  46. mark=at position 0.55 with {\arrow{>>}}}
  47. ]
  48. \draw[postaction={decorate}] (b.center) -- (c.center);
  49. \draw[postaction={decorate}] (a.center) -- (d.center);
  50. \end{scope}
  51. \end{tikzpicture}