Skip to content

Commit

Permalink
Triangulierung des Torus
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Feb 21, 2014
1 parent ad0c3c4 commit 8441632
Show file tree
Hide file tree
Showing 24 changed files with 548 additions and 0 deletions.
Binary file modified documents/GeoTopo/GeoTopo.pdf
Binary file not shown.
34 changes: 34 additions & 0 deletions documents/GeoTopo/Kapitel2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,40 @@ \section{Simplizialkomplex}
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:
Expand Down
Binary file modified documents/GeoTopo/definitions/definitionen.pdf
Binary file not shown.
32 changes: 32 additions & 0 deletions documents/GeoTopo/figures/torus-invalid-triangulation-1.tex
Original file line number Diff line number Diff line change
@@ -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 changes: 39 additions & 0 deletions documents/GeoTopo/figures/torus-invalid-triangulation-2.tex
Original file line number Diff line number Diff line change
@@ -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 changes: 53 additions & 0 deletions documents/GeoTopo/figures/torus-triangulation-minimal.tex
Original file line number Diff line number Diff line change
@@ -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 changes: 51 additions & 0 deletions documents/GeoTopo/figures/torus-triangulation.tex
Original file line number Diff line number Diff line change
@@ -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 modified documents/GeoTopo/other-formats/GeoTopo-A5.pdf
Binary file not shown.
31 changes: 31 additions & 0 deletions tikz/torus-invalid-triangulation-1/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions tikz/torus-invalid-triangulation-1/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Compiled example
----------------
![Example](torus-invalid-triangulation-1.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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 changes: 31 additions & 0 deletions tikz/torus-invalid-triangulation-2/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions tikz/torus-invalid-triangulation-2/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Compiled example
----------------
![Example](torus-invalid-triangulation-2.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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}
Loading

0 comments on commit 8441632

Please sign in to comment.