Advertisement
ahorsewithnoname

Hexagonal Lattice Borja

Feb 15th, 2025
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.72 KB | Science | 0 0
  1. \begin{tikzpicture}[scale = 1]
  2. \pgfmathsetmacro\dOne{2.64}
  3. \pgfmathsetmacro\dTwo{1.19}
  4.  
  5. \draw[latex-latex] (0.05*\dOne,{2*sqrt(3)*\dTwo}) -- node[above] {$d_1$} (\dOne-0.05*\dOne,{2*sqrt(3)*\dTwo});
  6. \draw[latex-latex] (2.4*\dOne,{2*\dTwo-0.025}) -- node[right] {$d_2$} (2.4*\dOne,{\dTwo+0.025});
  7.  
  8. \draw[gray, thin] (-2*\dOne/3,2*\dTwo) -- (8*\dOne/3,2*\dTwo);
  9. \draw[gray, thin] (-2*\dOne/3,\dTwo) -- (8*\dOne/3,\dTwo);
  10. \draw[gray, thin] (-2*\dOne/3,{-\dTwo}) -- (8*\dOne/3,{-\dTwo});
  11. \draw[gray, thin] (0,{-2.5*\dTwo/sqrt(3)}) -- (0,{2*sqrt(3)*\dTwo});
  12. \draw[gray, thin] (\dOne,{-2.5*\dTwo/sqrt(3)}) -- (\dOne,{2*sqrt(3)*\dTwo});
  13. \draw[gray, thin] (2*\dOne,{-2.5*\dTwo/sqrt(3)}) -- (2*\dOne,{2*sqrt(3)*\dTwo});
  14.  
  15. \coordinate (A1) at (0,0);
  16. \coordinate (A2) at (2*\dOne/3,0);
  17. \coordinate (A3) at (\dOne,\dTwo);
  18. \coordinate (A4) at (2*\dOne/3,2*\dTwo);
  19. \coordinate (A5) at (0,2*\dTwo);
  20. \coordinate (A6) at (-\dOne/3,\dTwo);
  21.  
  22. \coordinate (B1) at (\dOne,\dTwo);
  23. \coordinate (B2) at (5*\dOne/3,\dTwo);
  24. \coordinate (B3) at (2*\dOne,2*\dTwo);
  25. \coordinate (B4) at (5*\dOne/3,{3*\dTwo});
  26. \coordinate (B5) at (\dOne,{3*\dTwo});
  27. \coordinate (B6) at (2*\dOne/3,2*\dTwo);
  28.  
  29. \coordinate (C1) at (\dOne,{-\dTwo});
  30. \coordinate (C2) at (5*\dOne/3,{-\dTwo});
  31. \coordinate (C3) at (2*\dOne,0);
  32. \coordinate (C4) at (5*\dOne/3,\dTwo);
  33. \coordinate (C5) at (\dOne,\dTwo);
  34. \coordinate (C6) at (2*\dOne/3,0);
  35.  
  36. \draw[thick] (A1) -- (A2) -- (A3) -- (A4) -- (A5) -- (A6) -- cycle;
  37. \draw[thick] (B1) -- (B2) -- (B3) -- (B4) -- (B5) -- (B6) -- cycle;
  38.  
  39. \draw[thick] (C1) -- (C2) -- (C3) -- (C4) -- (C5) -- (C6) -- cycle;
  40.  
  41. \foreach \point in {A1,A2,A3,A4,A5,A6,B1,B2,B3,B4,B5,B6,C1,C2,C3,C4,C5,C6}
  42.    \fill (\point) circle (3.5pt);
  43. \end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement