topology-triangle-simplicial-complex.tex 968 B

123456789101112131415161718192021222324252627
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{patterns}
  4. \begin{document}
  5. \begin{tikzpicture}
  6. \tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
  7. \node (a)[point] at (0,0) {};
  8. \node (b)[point] at (3,0) {};
  9. \node (c)[point] at (2,2) {};
  10. \begin{scope}[yshift=2cm]
  11. \node (d)[point] at (1,1) {};
  12. \node (e)[point] at (0,2) {};
  13. \node (f)[point] at (4,2) {};
  14. \end{scope}
  15. \node (p)[point,label={[label distance=0cm]5:$P$}] at (1.5,0.5) {};
  16. \draw[pattern=north east lines] (a.center) -- (p.center) -- (b.center) -- cycle;
  17. \draw[pattern=north west lines] (a.center) -- (p.center) -- (c.center) -- cycle;
  18. \draw[pattern=vertical lines] (b.center) -- (p.center) -- (c.center) -- cycle;
  19. \draw[pattern=dots] (d.center) -- (e.center) -- (f.center) -- cycle;
  20. \draw (p.center) -- (d.center);
  21. \end{tikzpicture}
  22. \end{document}