torus-invalid-triangulation-1.tex 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. \draw[pattern=north west lines] (d.center) -- (ad.center) -- (m.center);
  12. \draw[pattern=dots] (m.center) -- (bc.center) -- (c.center);
  13. \draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
  14. \begin{scope}[decoration={
  15. markings,
  16. mark=at position 0.6 with {\arrow{>}}}
  17. ]
  18. \draw[postaction={decorate}] (a.center) -- (b.center);
  19. \draw[postaction={decorate}] (d.center) -- (c.center);
  20. \end{scope}
  21. \begin{scope}[decoration={
  22. markings,
  23. mark=at position 0.55 with {\arrow{>>}}}
  24. ]
  25. \draw[postaction={decorate}] (b.center) -- (c.center);
  26. \draw[postaction={decorate}] (a.center) -- (d.center);
  27. \end{scope}
  28. \draw (ab.center) -- (cd.center);
  29. \draw (a.center) -- (c.center);
  30. \draw (b.center) -- (d.center);
  31. \end{tikzpicture}