Commit aaceb5a2 authored by Mike Kremer's avatar Mike Kremer

Added images for the flip and collapse tut plus their latex sources

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@246 fdac6126-5c0c-442c-9429-916003d36597
parent d3f4a33f
\documentclass{minimal}
% Tikz
\usepackage{pgf}
\usepackage{tikz}
\usepackage{color}
\definecolor{ACG}{RGB}{55,91,64}
\begin{document}
\begin{center}
%\colorbox{ACG}{
\begin{tikzpicture}
[
vertex/.style={draw=none,circle,fill=white,minimum size=2pt},
edge/.style={draw,white,thick},
hedge/.style={->,>=latex,shorten >=5pt,draw,white,very thick},
redge/.style={line width=3pt,color=red!50!white}
]
\begin{scope}[yshift=-3.6cm]
\begin{scope}[xshift=-4cm,x={(1.4,0)},y={(0,1.4)}]
\coordinate (V1) at (-1,1);
\coordinate (V2) at (-1,3);
\coordinate (V3) at (0,0);
\coordinate (V4) at (0,2);
\coordinate (V5) at (0,4);
\coordinate (V6) at (1,3);
\coordinate (V7) at (1,1);
\draw[edge] (V1) -- (V2) {};
\draw[edge] (V2) -- (V4) {};
\draw[hedge] ([xshift=-2pt]V4) -- ([xshift=-2pt]V3) {};
\draw[hedge,color=red!50!white] ([xshift=2pt]V3) -- ([xshift=2pt]V4) {};
\draw[edge] (V3) -- (V1) {};
\draw[edge] (V4) -- (V6) {};
\draw[edge] (V6) -- (V7) {};
\draw[edge] (V7) -- (V3) {};
\draw[edge] (V2) -- (V5) {};
\draw[edge] (V5) -- (V6) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V4) {};
\node[vertex] at (V5) {};
\node[vertex] at (V6) {};
\node[vertex] at (V7) {};
\end{scope}
\draw[->,>=latex,thick,white] (-1.5, 4) arc (105:75:6);
\node[above] at (0, 4.2) {\textcolor{white}{\textbf{Collapse edge}}};
\begin{scope}[xshift=4cm,x={(1.4,0)},y={(0,1.4)}]
\coordinate (V1) at (-1,1);
\coordinate (V2) at (-1,3);
%\coordinate (V3) at (0,0);
\coordinate (V4) at (0,2);
\coordinate (V5) at (0,4);
\coordinate (V6) at (1,3);
\coordinate (V7) at (1,1);
\draw[edge] (V1) -- (V2) {};
\draw[edge] (V2) -- (V4) {};
\draw[edge] (V4) -- (V1) {};
\draw[edge] (V4) -- (V6) {};
\draw[edge] (V6) -- (V7) {};
\draw[edge] (V7) -- (V4) {};
\draw[edge] (V2) -- (V5) {};
\draw[edge] (V5) -- (V6) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V4) {};
\node[vertex] at (V5) {};
\node[vertex] at (V6) {};
\node[vertex] at (V7) {};
\end{scope}
\end{scope}
\begin{scope}[yshift=3.6cm]
\begin{scope}[xshift=-4cm,x={(1.4,0)},y={(0,1.4)}]
\coordinate (V1) at (-1,1);
\coordinate (V2) at (-1,3);
\coordinate (V3) at (0,0);
\coordinate (V4) at (0,2);
\coordinate (V5) at (0,4);
\coordinate (V6) at (1,3);
\coordinate (V7) at (1,1);
\draw[edge] (V1) -- (V2) {};
\draw[edge] (V2) -- (V4) {};
\draw[hedge,color=red!50!white] ([xshift=-2pt]V4) -- ([xshift=-2pt]V3) {};
\draw[hedge] ([xshift=2pt]V3) -- ([xshift=2pt]V4) {};
\draw[edge] (V3) -- (V1) {};
\draw[edge] (V4) -- (V6) {};
\draw[edge] (V6) -- (V7) {};
\draw[edge] (V7) -- (V3) {};
\draw[edge] (V2) -- (V5) {};
\draw[edge] (V5) -- (V6) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V4) {};
\node[vertex] at (V5) {};
\node[vertex] at (V6) {};
\node[vertex] at (V7) {};
\end{scope}
\draw[->,>=latex,thick,white] (-1.5, 4) arc (105:75:6);
\node[above] at (0, 4.2) {\textcolor{white}{\textbf{Collapse edge}}};
\begin{scope}[xshift=4cm,x={(1.4,0)},y={(0,1.4)}]
\coordinate (V1) at (-1,1);
\coordinate (V2) at (-1,3);
\coordinate (V3) at (0,0);
%\coordinate (V4) at (0,2);
\coordinate (V5) at (0,4);
\coordinate (V6) at (1,3);
\coordinate (V7) at (1,1);
\draw[edge] (V1) -- (V2) {};
\draw[edge] (V2) -- (V3) {};
\draw[edge] (V3) -- (V1) {};
\draw[edge] (V3) -- (V6) {};
\draw[edge] (V6) -- (V7) {};
\draw[edge] (V7) -- (V3) {};
\draw[edge] (V2) -- (V5) {};
\draw[edge] (V5) -- (V6) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V5) {};
\node[vertex] at (V6) {};
\node[vertex] at (V7) {};
\end{scope}
\end{scope}
\end{tikzpicture}
%}
\end{center}
\end{document}
\documentclass{minimal}
% Tikz
\usepackage{pgf}
\usepackage{tikz}
\usepackage{color}
\definecolor{ACG}{RGB}{55,91,64}
\begin{document}
\begin{center}
%\colorbox{ACG}{
\begin{tikzpicture}
[
vertex/.style={draw=none,circle,fill=white,minimum size=2pt},
edge/.style={draw,white,thick},
redge/.style={line width=3pt,color=red!50!white}
]
\begin{scope}[xshift=-5cm]
\coordinate (V1) at (-3,3);
\coordinate (V2) at (0,0);
\coordinate (V3) at (0,6);
\coordinate (V4) at (3,3);
\draw[edge] (V1) to (V2) {};
\draw[edge] (V1) -- (V3) {};
\draw[redge] (V1) -- (V4) {};
\draw[edge] (V2) -- (V4) {};
\draw[edge] (V3) -- (V4) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V4) {};
\end{scope}
\draw[->,>=latex,thick,white] (-1.5, 4) arc (105:75:6);
\node[above] at (0, 4.2) {\textcolor{white}{\textbf{Flip edge}}};
\begin{scope}[xshift=5cm]
\coordinate (V1) at (-3,3);
\coordinate (V2) at (0,0);
\coordinate (V3) at (0,6);
\coordinate (V4) at (3,3);
\draw[edge] (V1) to (V2) {};
\draw[edge] (V1) -- (V3) {};
\draw[redge] (V2) -- (V3) {};
\draw[edge] (V2) -- (V4) {};
\draw[edge] (V3) -- (V4) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V4) {};
\end{scope}
\end{tikzpicture}
%}
\end{center}
\end{document}
\documentclass{minimal}
% Tikz
\usepackage{pgf}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
[
vertex/.style={draw=none,circle,fill=white,minimum size=2pt},
vertex/.style={draw=none,circle,fill=white,minimum size=2pt},
oedge/.style={->,>=latex,shorten >=6pt,draw,white,thick},
roedge/.style={->,>=latex,shorten >=6pt,draw,thick,color=red!60!white},
boedge/.style={->,>=latex,shorten >=6pt,draw,thick,color=blue!60!white}
]
\coordinate (V1) at (-3,3);
\coordinate (V2) at (0,0);
\coordinate (V3) at (0,6);
\coordinate (V4) at (3,3);
\path[boedge] ([yshift=3pt]V1) to ([yshift=3pt]V2) {};
\path[roedge] ([yshift=-3pt]V2) to ([yshift=-3pt]V1) {};
\path[oedge] ([yshift=3pt]V1) -- ([yshift=3pt]V3) {};
\path[oedge] ([yshift=-3pt]V3) -- ([yshift=-3pt]V1) {};
\path[boedge] ([xshift=2pt]V3) -- ([xshift=2pt]V2) {};
\path[roedge] ([xshift=-2pt]V2) -- ([xshift=-2pt]V3) {};
\path[roedge] ([yshift=3pt]V2) -- ([yshift=3pt]V4) {};
\path[boedge] ([yshift=-3pt]V4) -- ([yshift=-3pt]V2) {};
\path[oedge] ([yshift=3pt]V3) -- ([yshift=3pt]V4) {};
\path[oedge] ([yshift=-3pt]V4) -- ([yshift=-3pt]V3) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V4) {};
%\draw[->, thick] (-0.4,3) arc (0:320:20pt);
\end{tikzpicture}
\end{center}
\end{document}
\documentclass{minimal}
% Tikz
\usepackage{pgf}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
[
vertex/.style={draw=none,circle,fill=white,minimum size=2pt},
vertex/.style={draw=none,circle,fill=white,minimum size=2pt},
oedge/.style={->,>=latex,shorten >=6pt,draw,white,thick},
roedge/.style={->,>=latex,shorten >=6pt,draw,thick,color=red!60!white},
boedge/.style={->,>=latex,shorten >=6pt,draw,thick,color=blue!60!white}
]
\coordinate (V1) at (-3,3);
\coordinate (V2) at (0,0);
\coordinate (V3) at (0,6);
\coordinate (V4) at (3,3);
\path[oedge] ([yshift=3pt]V1) to ([yshift=3pt]V2) {};
\path[oedge] ([yshift=-3pt]V2) to ([yshift=-3pt]V1) {};
\path[boedge] ([yshift=3pt]V1) -- ([yshift=3pt]V3) {};
\path[roedge] ([yshift=-3pt]V3) -- ([yshift=-3pt]V1) {};
\path[oedge] ([xshift=2pt]V3) -- ([xshift=2pt]V2) {};
\path[oedge] ([xshift=-2pt]V2) -- ([xshift=-2pt]V3) {};
\path[oedge] ([yshift=3pt]V2) -- ([yshift=3pt]V4) {};
\path[oedge] ([yshift=-3pt]V4) -- ([yshift=-3pt]V2) {};
\path[oedge] ([yshift=3pt]V3) -- ([yshift=3pt]V4) {};
\path[oedge] ([yshift=-3pt]V4) -- ([yshift=-3pt]V3) {};
\node[vertex] at (V1) {};
\node[vertex] at (V2) {};
\node[vertex] at (V3) {};
\node[vertex] at (V4) {};
%\draw[->, thick] (-0.4,3) arc (0:320:20pt);
\end{tikzpicture}
\end{center}
\end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment