-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyp.tex
125 lines (104 loc) · 2.94 KB
/
hyp.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
% Copyright © 2017-2018 Martin Ueding <martin-ueding.de>
% Licensed under CC-BY 4.0
\documentclass{scrartcl}
\pagestyle{empty}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[
rotate around y=-15,
%rotate around z=7,
scale=2,
link-main/.style={
ultra thick,
},
link-staple/.style={
thick,
},
link-needed/.style={
dashed,
},
link-grid/.style={
dotted,
},
point/.style={
draw,
circle,
},
]
% Lattice points.
\foreach \x in {0, 1}
\foreach \y in {0, 1, 2}
\foreach \z in {0, 1, 2}
\node[point] (n\x\y\z) at (\x, \y, \z) {};
% Basic background grid.
\foreach \a/\b in {0/1}
\foreach \y in {0, 1, 2}
\foreach \z in {0, 1, 2}
\draw[link-grid] (n\a\y\z) -- (n\b\y\z);
\foreach \x in {0, 1}
\foreach \a/\b in {0/1, 1/2}
\foreach \z in {0, 1, 2}
\draw[link-grid] (n\x\a\z) -- (n\x\b\z);
\foreach \x in {0, 1}
\foreach \y in {0, 1, 2}
\foreach \a/\b in {0/1, 1/2}
\draw[link-grid] (n\x\y\a) -- (n\x\y\b);
% Main link.
\draw[link-main] (n011) -- (n111);
% Staples.
\draw[link-staple] (n011) -- (n021) -- (n121) -- (n111);
\draw[link-staple] (n011) -- (n012) -- (n112) -- (n111);
\draw[link-staple] (n011) -- (n010) -- (n110) -- (n111);
\draw[link-staple] (n011) -- (n001) -- (n101) -- (n111);
\end{tikzpicture}
\begin{tikzpicture}[
rotate around y=-15,
%rotate around z=7,
scale=2,
link-main/.style={
ultra thick,
},
link-staple/.style={
thick,
},
link-needed/.style={
dashed,
},
link-grid/.style={
dotted,
},
point/.style={
draw,
circle,
},
]
% Lattice points.
\foreach \x in {0, 1}
\foreach \y in {0, 1, 2}
\foreach \z in {0, 1, 2}
\node[point] (n\x\y\z) at (\x, \y, \z) {};
% Basic background grid.
\foreach \a/\b in {0/1}
\foreach \y in {0, 1}
\foreach \z in {0, 1, 2}
\draw[link-grid] (n\a\y\z) -- (n\b\y\z);
\foreach \x in {0, 1}
\foreach \a/\b in {0/1}
\foreach \z in {0, 1, 2}
\draw[link-grid] (n\x\a\z) -- (n\x\b\z);
\foreach \x in {0, 1}
\foreach \y in {0}
\foreach \a/\b in {0/1, 1/2}
\draw[link-grid] (n\x\y\a) -- (n\x\y\b);
% Main link.
\draw[link-main] (n011) -- (n111);
% Staples.
\draw[link-staple] (n011) -- (n021) -- (n121) -- (n111);
% Links that are needed for the computation of the staple.
\draw[link-needed] (n110) -- (n120) -- (n121) -- (n122) -- (n112) -- (n111) -- (n110);
\draw[link-needed] (n010) -- (n020) -- (n021) -- (n022) -- (n012) -- (n011) -- (n010);
\draw[link-needed] (n020) -- (n120);
\draw[link-needed] (n022) -- (n122);
\end{tikzpicture}
\end{document}