torus-invalid-triangulation-2.tex 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 (ab) at ($(a)!0.5!(b)$);
  8. \coordinate (bc) at ($(b)!0.5!(c)$);
  9. \coordinate (cd) at ($(c)!0.5!(d)$);
  10. \coordinate (ad) at ($(a)!0.5!(d)$);
  11. \coordinate (left-intersection) at ($(m)!0.5!(d)$);
  12. \coordinate (right-intersection) at ($(m)!0.5!(c)$);
  13. \draw[pattern=north west lines] (ad.center) -- (left-intersection.center) -- (m.center);
  14. \draw[pattern=dots] (m.center) -- (right-intersection.center) -- (bc.center);
  15. \draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
  16. \draw (bc.center) -- (ad.center);
  17. \draw (cd.center) -- (ad.center);
  18. \draw (cd.center) -- (bc.center);
  19. \draw (ad.center) -- (ab.center);
  20. \draw (ab.center) -- (bc.center);
  21. \begin{scope}[decoration={
  22. markings,
  23. mark=at position 0.6 with {\arrow{>}}}
  24. ]
  25. \draw[postaction={decorate}] (a.center) -- (b.center);
  26. \draw[postaction={decorate}] (d.center) -- (c.center);
  27. \end{scope}
  28. \begin{scope}[decoration={
  29. markings,
  30. mark=at position 0.55 with {\arrow{>>}}}
  31. ]
  32. \draw[postaction={decorate}] (b.center) -- (c.center);
  33. \draw[postaction={decorate}] (a.center) -- (d.center);
  34. \end{scope}
  35. \draw (ab.center) -- (cd.center);
  36. \draw (a.center) -- (c.center);
  37. \draw (b.center) -- (d.center);
  38. \end{tikzpicture}