mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
Triangulierung des Torus
This commit is contained in:
parent
ad0c3c4700
commit
84416324f5
24 changed files with 548 additions and 0 deletions
Binary file not shown.
|
@ -871,6 +871,40 @@ Differenzierbare Mannigfaltigkeiten der Klasse $C^\infty$ werden auch
|
|||
Dann heißt $h$ eine \textbf{Triangulierung} von $X$.
|
||||
\end{definition}
|
||||
|
||||
\begin{beispiel}[Triangulierung des Torus]\xindex{Torus}%
|
||||
Für eine Triangulierung des Torus werden mindestens 14 Dreiecke benötigt.
|
||||
Beispiele für fehlerhafte \enquote{Triangulierungen} sind in \cref{fig:torus-triangulierung-fails}
|
||||
zu sehen. Korrekte Triangulierungen sind in \cref{fig:torus-triangulierung}.
|
||||
|
||||
\begin{figure}[htp]
|
||||
\centering
|
||||
\subfloat[Die beiden markierten Dreiecke schneiden sich im Mittelpunkt und in einer Seite.]{
|
||||
\resizebox{0.45\linewidth}{!}{\input{figures/torus-invalid-triangulation-1.tex}}
|
||||
\label{fig:torus-triangulierung-fail-1}
|
||||
}%
|
||||
\subfloat[Die beiden markierten Dreiecke schneiden sich im Mittelpunkt und außen.]{
|
||||
\resizebox{0.45\linewidth}{!}{\input{figures/torus-invalid-triangulation-2.tex}}
|
||||
\label{fig:torus-triangulierung-fail-2}
|
||||
}%
|
||||
\label{fig:torus-triangulierung-fails}
|
||||
\caption{Fehlerhafte Triangulierungen}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}[htp]
|
||||
\centering
|
||||
\subfloat[Einfache Triangulierung]{
|
||||
\resizebox{0.45\linewidth}{!}{\input{figures/torus-triangulation.tex}}
|
||||
\label{fig:torus-triangulierung-simple}
|
||||
}%
|
||||
\subfloat[Minimale Triangulierung]{
|
||||
\resizebox{0.45\linewidth}{!}{\input{figures/torus-triangulation-minimal.tex}}
|
||||
\label{fig:torus-triangulierung-minimal}
|
||||
}%
|
||||
\label{fig:torus-triangulierung}
|
||||
\caption{Triangulierungen des Torus}
|
||||
\end{figure}
|
||||
\end{beispiel}
|
||||
|
||||
\begin{satz}[Eulersche Polyederformel]\xindex{Eulersche Polyederformel}%
|
||||
Sei $P$ ein konvexes Polyeder in $\mdr^3$, d.~h. $\partial P$ ist
|
||||
ein 2-dimensionaler Simplizialkomplex, sodass gilt:
|
||||
|
|
Binary file not shown.
32
documents/GeoTopo/figures/torus-invalid-triangulation-1.tex
Normal file
32
documents/GeoTopo/figures/torus-invalid-triangulation-1.tex
Normal file
|
@ -0,0 +1,32 @@
|
|||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab) at ($(a)!0.5!(b)$);
|
||||
\coordinate (bc) at ($(b)!0.5!(c)$);
|
||||
\coordinate (cd) at ($(c)!0.5!(d)$);
|
||||
\coordinate (ad) at ($(a)!0.5!(d)$);
|
||||
\draw[pattern=north west lines] (d.center) -- (ad.center) -- (m.center);
|
||||
\draw[pattern=dots] (m.center) -- (bc.center) -- (c.center);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\draw (ab.center) -- (cd.center);
|
||||
\draw (a.center) -- (c.center);
|
||||
\draw (b.center) -- (d.center);
|
||||
\end{tikzpicture}
|
39
documents/GeoTopo/figures/torus-invalid-triangulation-2.tex
Normal file
39
documents/GeoTopo/figures/torus-invalid-triangulation-2.tex
Normal file
|
@ -0,0 +1,39 @@
|
|||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab) at ($(a)!0.5!(b)$);
|
||||
\coordinate (bc) at ($(b)!0.5!(c)$);
|
||||
\coordinate (cd) at ($(c)!0.5!(d)$);
|
||||
\coordinate (ad) at ($(a)!0.5!(d)$);
|
||||
\coordinate (left-intersection) at ($(m)!0.5!(d)$);
|
||||
\coordinate (right-intersection) at ($(m)!0.5!(c)$);
|
||||
\draw[pattern=north west lines] (ad.center) -- (left-intersection.center) -- (m.center);
|
||||
\draw[pattern=dots] (m.center) -- (right-intersection.center) -- (bc.center);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
\draw (bc.center) -- (ad.center);
|
||||
\draw (cd.center) -- (ad.center);
|
||||
\draw (cd.center) -- (bc.center);
|
||||
\draw (ad.center) -- (ab.center);
|
||||
\draw (ab.center) -- (bc.center);
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\draw (ab.center) -- (cd.center);
|
||||
\draw (a.center) -- (c.center);
|
||||
\draw (b.center) -- (d.center);
|
||||
\end{tikzpicture}
|
53
documents/GeoTopo/figures/torus-triangulation-minimal.tex
Normal file
53
documents/GeoTopo/figures/torus-triangulation-minimal.tex
Normal file
|
@ -0,0 +1,53 @@
|
|||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab2) at ($(a)!0.5!(b)$);
|
||||
\coordinate (ab1) at ($(a)!0.5!(ab2)$);
|
||||
\coordinate (ab3) at ($(b)!0.5!(ab2)$);
|
||||
\coordinate (bc2) at ($(b)!0.5!(c)$);
|
||||
\coordinate (bc1) at ($(b)!0.5!(bc2)$);
|
||||
\coordinate (bc3) at ($(c)!0.5!(bc2)$);
|
||||
\coordinate (cd2) at ($(c)!0.5!(d)$);
|
||||
\coordinate (cd1) at ($(c)!0.5!(cd2)$);
|
||||
\coordinate (cd3) at ($(d)!0.5!(cd2)$);
|
||||
\coordinate (ad2) at ($(a)!0.5!(d)$);
|
||||
\coordinate (ad1) at ($(a)!0.5!(ad2)$);
|
||||
\coordinate (ad3) at ($(d)!0.5!(ad2)$);
|
||||
\coordinate (corner1) at ($(a)!0.25!(bc3)$);
|
||||
\coordinate (corner2) at ($(c)!0.25!(ad1)$);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
%horizontal
|
||||
\draw (a.center) -- (bc3.center);
|
||||
\draw (cd3.center) -- (ad3.center);
|
||||
\draw (ab3.center) -- (bc1.center);
|
||||
\draw (cd3.center) -- (ad1.center);
|
||||
\draw (ab3.center) -- (bc3.center);
|
||||
\draw (ab1.center) -- (corner1.center);
|
||||
\draw (ad1.center) -- (corner1.center);
|
||||
\draw (ab3.center) -- (corner1.center);
|
||||
\draw (c.center) -- (corner2.center);
|
||||
\draw (cd1.center) -- (corner2.center);
|
||||
\draw (bc3.center) -- (corner2.center);
|
||||
\draw (cd3.center) -- (corner2.center);
|
||||
\draw (corner1.center) -- (corner2.center);
|
||||
\draw (ad1.center) -- (corner2.center);
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\end{tikzpicture}
|
51
documents/GeoTopo/figures/torus-triangulation.tex
Normal file
51
documents/GeoTopo/figures/torus-triangulation.tex
Normal file
|
@ -0,0 +1,51 @@
|
|||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab2) at ($(a)!0.5!(b)$);
|
||||
\coordinate (ab1) at ($(a)!0.5!(ab2)$);
|
||||
\coordinate (ab3) at ($(b)!0.5!(ab2)$);
|
||||
\coordinate (bc2) at ($(b)!0.5!(c)$);
|
||||
\coordinate (bc1) at ($(b)!0.5!(bc2)$);
|
||||
\coordinate (bc3) at ($(c)!0.5!(bc2)$);
|
||||
\coordinate (cd2) at ($(c)!0.5!(d)$);
|
||||
\coordinate (cd1) at ($(c)!0.5!(cd2)$);
|
||||
\coordinate (cd3) at ($(d)!0.5!(cd2)$);
|
||||
\coordinate (ad2) at ($(a)!0.5!(d)$);
|
||||
\coordinate (ad1) at ($(a)!0.5!(ad2)$);
|
||||
\coordinate (ad3) at ($(d)!0.5!(ad2)$);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
%horizontal
|
||||
\draw (bc1.center) -- (ad1.center);
|
||||
\draw (bc2.center) -- (ad2.center);
|
||||
\draw (bc3.center) -- (ad3.center);
|
||||
%vertical
|
||||
\draw (ab1.center) -- (cd3.center);
|
||||
\draw (ab2.center) -- (cd2.center);
|
||||
\draw (ab3.center) -- (cd1.center);
|
||||
%diagonal
|
||||
\draw (ad3.center) -- (cd3.center);
|
||||
\draw (ad2.center) -- (cd2.center);
|
||||
\draw (ad1.center) -- (cd1.center);
|
||||
\draw (a.center) -- (c.center);
|
||||
\draw (ab1.center) -- (bc3.center);
|
||||
\draw (ab2.center) -- (bc2.center);
|
||||
\draw (ab3.center) -- (bc1.center);
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\end{tikzpicture}
|
Binary file not shown.
31
tikz/torus-invalid-triangulation-1/Makefile
Normal file
31
tikz/torus-invalid-triangulation-1/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = torus-invalid-triangulation-1
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
3
tikz/torus-invalid-triangulation-1/Readme.md
Normal file
3
tikz/torus-invalid-triangulation-1/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -0,0 +1,42 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{patterns,calc,decorations.markings}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab) at ($(a)!0.5!(b)$);
|
||||
\coordinate (bc) at ($(b)!0.5!(c)$);
|
||||
\coordinate (cd) at ($(c)!0.5!(d)$);
|
||||
\coordinate (ad) at ($(a)!0.5!(d)$);
|
||||
\draw[pattern=north west lines] (d.center) -- (ad.center) -- (m.center);
|
||||
\draw[pattern=dots] (m.center) -- (bc.center) -- (c.center);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\draw (ab.center) -- (cd.center);
|
||||
\draw (a.center) -- (c.center);
|
||||
\draw (b.center) -- (d.center);
|
||||
|
||||
%\draw[pattern=north west lines] (a.center) -- (b.center) -- (z.center) --cycle;
|
||||
%\draw[pattern=dots] (b.center) -- (c.center) -- (z.center) --cycle;
|
||||
%\draw[pattern=crosshatch] (a.center) -- (c.center) -- (z.center) --cycle;
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
31
tikz/torus-invalid-triangulation-2/Makefile
Normal file
31
tikz/torus-invalid-triangulation-2/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = torus-invalid-triangulation-2
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
3
tikz/torus-invalid-triangulation-2/Readme.md
Normal file
3
tikz/torus-invalid-triangulation-2/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -0,0 +1,45 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{patterns,calc,decorations.markings}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab) at ($(a)!0.5!(b)$);
|
||||
\coordinate (bc) at ($(b)!0.5!(c)$);
|
||||
\coordinate (cd) at ($(c)!0.5!(d)$);
|
||||
\coordinate (ad) at ($(a)!0.5!(d)$);
|
||||
\coordinate (left-intersection) at ($(m)!0.5!(d)$);
|
||||
\coordinate (right-intersection) at ($(m)!0.5!(c)$);
|
||||
\draw[pattern=north west lines] (ad.center) -- (left-intersection.center) -- (m.center);
|
||||
\draw[pattern=dots] (m.center) -- (right-intersection.center) -- (bc.center);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
\draw (bc.center) -- (ad.center);
|
||||
\draw (cd.center) -- (ad.center);
|
||||
\draw (cd.center) -- (bc.center);
|
||||
\draw (ad.center) -- (ab.center);
|
||||
\draw (ab.center) -- (bc.center);
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\draw (ab.center) -- (cd.center);
|
||||
\draw (a.center) -- (c.center);
|
||||
\draw (b.center) -- (d.center);
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
31
tikz/torus-triangulation-minimal/Makefile
Normal file
31
tikz/torus-triangulation-minimal/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = torus-triangulation-minimal
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
3
tikz/torus-triangulation-minimal/Readme.md
Normal file
3
tikz/torus-triangulation-minimal/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/torus-triangulation-minimal/torus-triangulation-minimal.png
Normal file
BIN
tikz/torus-triangulation-minimal/torus-triangulation-minimal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -0,0 +1,59 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{patterns,calc,decorations.markings}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab2) at ($(a)!0.5!(b)$);
|
||||
\coordinate (ab1) at ($(a)!0.5!(ab2)$);
|
||||
\coordinate (ab3) at ($(b)!0.5!(ab2)$);
|
||||
\coordinate (bc2) at ($(b)!0.5!(c)$);
|
||||
\coordinate (bc1) at ($(b)!0.5!(bc2)$);
|
||||
\coordinate (bc3) at ($(c)!0.5!(bc2)$);
|
||||
\coordinate (cd2) at ($(c)!0.5!(d)$);
|
||||
\coordinate (cd1) at ($(c)!0.5!(cd2)$);
|
||||
\coordinate (cd3) at ($(d)!0.5!(cd2)$);
|
||||
\coordinate (ad2) at ($(a)!0.5!(d)$);
|
||||
\coordinate (ad1) at ($(a)!0.5!(ad2)$);
|
||||
\coordinate (ad3) at ($(d)!0.5!(ad2)$);
|
||||
\coordinate (corner1) at ($(a)!0.25!(bc3)$);
|
||||
\coordinate (corner2) at ($(c)!0.25!(ad1)$);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
%horizontal
|
||||
\draw (a.center) -- (bc3.center);
|
||||
\draw (cd3.center) -- (ad3.center);
|
||||
\draw (ab3.center) -- (bc1.center);
|
||||
\draw (cd3.center) -- (ad1.center);
|
||||
\draw (ab3.center) -- (bc3.center);
|
||||
\draw (ab1.center) -- (corner1.center);
|
||||
\draw (ad1.center) -- (corner1.center);
|
||||
\draw (ab3.center) -- (corner1.center);
|
||||
\draw (c.center) -- (corner2.center);
|
||||
\draw (cd1.center) -- (corner2.center);
|
||||
\draw (bc3.center) -- (corner2.center);
|
||||
\draw (cd3.center) -- (corner2.center);
|
||||
\draw (corner1.center) -- (corner2.center);
|
||||
\draw (ad1.center) -- (corner2.center);
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
31
tikz/torus-triangulation/Makefile
Normal file
31
tikz/torus-triangulation/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = torus-triangulation
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
3
tikz/torus-triangulation/Readme.md
Normal file
3
tikz/torus-triangulation/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/torus-triangulation/torus-triangulation.png
Normal file
BIN
tikz/torus-triangulation/torus-triangulation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
57
tikz/torus-triangulation/torus-triangulation.tex
Normal file
57
tikz/torus-triangulation/torus-triangulation.tex
Normal file
|
@ -0,0 +1,57 @@
|
|||
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{patterns,calc,decorations.markings}
|
||||
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\node (a) at (0,0) {};
|
||||
\node (b) at (1,0) {};
|
||||
\node (c) at (1,1) {};
|
||||
\node (d) at (0,1) {};
|
||||
\coordinate (m) at ($(a)!0.5!(c)$);
|
||||
\coordinate (ab2) at ($(a)!0.5!(b)$);
|
||||
\coordinate (ab1) at ($(a)!0.5!(ab2)$);
|
||||
\coordinate (ab3) at ($(b)!0.5!(ab2)$);
|
||||
\coordinate (bc2) at ($(b)!0.5!(c)$);
|
||||
\coordinate (bc1) at ($(b)!0.5!(bc2)$);
|
||||
\coordinate (bc3) at ($(c)!0.5!(bc2)$);
|
||||
\coordinate (cd2) at ($(c)!0.5!(d)$);
|
||||
\coordinate (cd1) at ($(c)!0.5!(cd2)$);
|
||||
\coordinate (cd3) at ($(d)!0.5!(cd2)$);
|
||||
\coordinate (ad2) at ($(a)!0.5!(d)$);
|
||||
\coordinate (ad1) at ($(a)!0.5!(ad2)$);
|
||||
\coordinate (ad3) at ($(d)!0.5!(ad2)$);
|
||||
\draw (a.center) -- (b.center) -- (c.center) -- (d.center) -- cycle;
|
||||
%horizontal
|
||||
\draw (bc1.center) -- (ad1.center);
|
||||
\draw (bc2.center) -- (ad2.center);
|
||||
\draw (bc3.center) -- (ad3.center);
|
||||
%vertical
|
||||
\draw (ab1.center) -- (cd3.center);
|
||||
\draw (ab2.center) -- (cd2.center);
|
||||
\draw (ab3.center) -- (cd1.center);
|
||||
%diagonal
|
||||
\draw (ad3.center) -- (cd3.center);
|
||||
\draw (ad2.center) -- (cd2.center);
|
||||
\draw (ad1.center) -- (cd1.center);
|
||||
\draw (a.center) -- (c.center);
|
||||
\draw (ab1.center) -- (bc3.center);
|
||||
\draw (ab2.center) -- (bc2.center);
|
||||
\draw (ab3.center) -- (bc1.center);
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.6 with {\arrow{>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (a.center) -- (b.center);
|
||||
\draw[postaction={decorate}] (d.center) -- (c.center);
|
||||
\end{scope}
|
||||
|
||||
\begin{scope}[decoration={
|
||||
markings,
|
||||
mark=at position 0.55 with {\arrow{>>}}}
|
||||
]
|
||||
\draw[postaction={decorate}] (b.center) -- (c.center);
|
||||
\draw[postaction={decorate}] (a.center) -- (d.center);
|
||||
\end{scope}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue