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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
%
% tikztemplate.tex -- template for standalon tikz images
%
% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
%
\documentclass[tikz]{standalone}
\usepackage{amsmath}
\usepackage{times}
\usepackage{txfonts}
\usepackage{pgfplots}
\usepackage{csvsimple}
\usetikzlibrary{arrows,intersections,math}
\begin{document}
\def\skala{1}
\begin{tikzpicture}[>=latex,thick,scale=\skala]
\def\s{0.4}
\def\punkt#1#2{({((#1)+0.5*(#2))*\s},{(#2)*\s*sqrt(3)/2})}
\def\A{\punkt{0}{0}}
\def\B{\punkt{1}{0}}
\def\C{\punkt{2}{0}}
\def\D{\punkt{3}{0}}
\def\E{\punkt{4}{0}}
\def\F{\punkt{0}{1}}
\def\G{\punkt{1}{1}}
\def\H{\punkt{2}{1}}
\def\I{\punkt{3}{1}}
\def\J{\punkt{0}{2}}
\def\K{\punkt{1}{2}}
\def\L{\punkt{2}{2}}
\def\M{\punkt{0}{3}}
\def\N{\punkt{1}{3}}
\def\O{\punkt{0}{4}}
%\def\knoten#1#2#3{
% \fill[color=white] \punkt{#1}{#2} circle[radius=0.3];
% \node at \punkt{#1}{#2} {$#3$\strut};
% \draw \punkt{#1}{#2} circle[radius=0.3];
%}
\def\dreieck#1#2#3{
\fill[color=gray] \punkt{#1}{#2} -- \punkt{#1+1}{#2}
-- \punkt{#1}{(#2)+1} -- cycle;
% \node at \punkt{#1+0.3333}{#2+0.3333} {$#3$\strut};
% \draw[->,line width=1pt,shorten >= 0.3cm,shorten <= 0.3cm]
% \punkt{#1}{#2} -- \punkt{#1+1}{#2};
% \draw[->,line width=1pt,shorten >= 0.3cm,shorten <= 0.3cm]
% \punkt{#1+1}{#2} -- \punkt{#1}{#2+1};
% \draw[->,line width=1pt,shorten >= 0.3cm,shorten <= 0.3cm]
% \punkt{#1}{#2+1} -- \punkt{#1}{#2};
}
%\def\Dreieck#1#2#3{
% \fill[color=gray!50] \punkt{#1}{#2} -- \punkt{#1+1}{#2}
% -- \punkt{#1+1}{(#2)-1} -- cycle;
% \node at \punkt{#1+0.3333}{#2+0.3333} {$#3$\strut};
%}
%\def\kante#1#2#3{
% \fill[color=white,opacity=0.8] \punkt{#1}{#2} circle[radius=0.15];
% \node at \punkt{#1}{#2} {$\scriptstyle #3$};
%}
\def\gebiet{
\dreieck{0}{0}{1}
\dreieck{1}{0}{2}
\dreieck{2}{0}{3}
\dreieck{3}{0}{4}
\dreieck{0}{1}{5}
\dreieck{2}{1}{6}
\dreieck{0}{2}{7}
\dreieck{1}{2}{8}
\dreieck{0}{3}{9}
}
\begin{scope}
\gebiet
\draw[->,color=red] \A -- \B -- \F -- cycle;
\draw[->,color=red] \A -- \B;
\node[color=red] at ({2*\s},-0.5) {$z_1$};
\end{scope}
\begin{scope}[xshift=2cm]
\gebiet
\draw[color=red] \B -- \C -- \G -- cycle;
\draw[->,color=red] \B -- \C;
\node[color=red] at ({2*\s},-0.5) {$z_2$};
\end{scope}
\begin{scope}[xshift=4cm]
\gebiet
\draw[color=red] \C -- \D -- \H -- cycle;
\draw[->,color=red] \C -- \D;
\node[color=red] at ({2*\s},-0.5) {$z_3$};
\end{scope}
\begin{scope}[xshift=6cm]
\gebiet
\draw[color=red] \D -- \E -- \I -- cycle;
\draw[->,color=red] \D -- \E;
\node[color=red] at ({2*\s},-0.5) {$z_4$};
\end{scope}
\begin{scope}[xshift=8cm]
\gebiet
\draw[color=red] \A -- \B -- \G -- \F -- cycle;
\draw[<-,color=red] \A -- \B;
\node[color=red] at ({2*\s},-0.5) {$z_5$};
\end{scope}
\begin{scope}[xshift=10cm]
\gebiet
\draw[color=red] \C -- \D -- \I -- \H -- cycle;
\draw[<-,color=red] \C -- \D;
\node[color=red] at ({2*\s},-0.5) {$z_6$};
\end{scope}
\begin{scope}[xshift=12cm]
\gebiet
\draw[color=red] \A -- \B -- \G -- \J -- \F -- cycle;
\draw[->,color=red] \A -- \B;
\node[color=red] at ({2*\s},-0.5) {$z_7$};
\end{scope}
\begin{scope}[xshift=0cm,yshift=-3cm]
\gebiet
\draw[color=red] \C -- \D -- \I -- \L -- \H -- cycle;
\draw[->,color=red] \C -- \D;
\node[color=red] at ({2*\s},-0.5) {$z_8$};
\end{scope}
\begin{scope}[xshift=2cm,yshift=-3cm]
\gebiet
\draw[color=red] \A -- \B -- \C -- \H -- \L -- \K -- \J -- \F -- cycle;
\draw[<-,color=red] \A -- \B;
\node[color=red] at ({2*\s},-0.5) {$z_9$};
\end{scope}
\begin{scope}[xshift=4cm,yshift=-3cm]
\gebiet
\draw[color=red] \J -- \K -- \M -- cycle;
\draw[->,color=red] \J -- \K;
\node[color=red] at ({2*\s},-0.5) {$z_{10}$};
\end{scope}
\begin{scope}[xshift=6cm,yshift=-3cm]
\gebiet
\draw[color=red] \A -- \B -- \C -- \H -- \L -- \N -- \K -- \J -- \F -- cycle;
\draw[->,color=red] \A -- \B;
\node[color=red] at ({2*\s},-0.5) {$z_{11}$};
\end{scope}
\begin{scope}[xshift=8cm,yshift=-3cm]
\gebiet
\draw[color=red] \J -- \K -- \N -- \M -- cycle;
\draw[<-,color=red] \J -- \K;
\node[color=red] at ({2*\s},-0.5) {$z_{12}$};
\end{scope}
\begin{scope}[xshift=10cm,yshift=-3cm]
\gebiet
\draw[color=red] \J -- \K -- \N -- \O -- \M -- cycle;
\draw[->,color=red] \J -- \K;
\node[color=red] at ({2*\s},-0.5) {$z_{13}$};
\end{scope}
\end{tikzpicture}
\end{document}
|