PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Halbkanten inTikZ



Pudelmuetze
11-02-2009, 23:54
Hallo!

Ich würde gerne folgende Graphik http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/HalfedgeDS/fig/halfedge.gifmit TikZ nachbauen, aber ich kriege keine Halbkanten hin.

Mein bisheriger Versuch:
\draw[left to-, ultra thick, double] (v1) edge node[swap] {} (v2);




\begin{tikzpicture}[node distance=4cm,auto]
\begin{footnotesize}
\tikzstyle{my state}= [circle,draw]
\node[] (v1) {};
\tikzset{node distance=1.5cm}
\node[] (v2) [above right of=v1] {};
\node[] (v22) [right of=v2] {};
\node[] (v3) [right of=v22] {};
\node[] (v4) [below right of=v3] {};

\tikzset{node distance=2cm}
\node[my state, red] (v11) [below of=v22] {};

\tikzset{node distance=4cm}
\node[my state, red] (v10) [below of=v11] {};

\tikzset{node distance=2cm}
\node[] (v7) [below of=v10] {};
\tikzset{node distance=1.5cm}
\node[] (v6) [left of=v7] {};
\node[] (v8) [right of=v7] {};
\node[] (v5) [above left of=v6] {};
\node[] (v9) [above right of=v8] {};

\tikzset{node distance=0.25cm}
\node[] (v11ul) [below left of=v11] {};
\node[] (v11ur) [below right of=v11] {};

\node[] (v10ol) [above left of=v10] {};
\node[] (v10or) [above right of=v10] {};
\node[] (v1u) [below of=v1] {};
\node[] (v4u) [below of=v4] {};
\node[] (v5o) [above of=v5] {};
\node[] (v9o) [above of=v9] {};

\draw[-left to, thick, dashed, blue] (v10ol) edge node {} (v11ul);
\draw[-left to, thick, dashed, blue] (v11ur) edge node {a} (v10or);
\draw[-left to>, thick, dashed, blue] (v11ul) edge node {b} (v1u);
\draw[-left to>, thick, dashed, blue] (v5o) edge node {d} (v10ol);

\draw[-left to, thick, dashed, blue] (v4u) edge node {c} (v11ur);
\draw[-left to, thick, dashed, blue] (v10or) edge node {e} (v9o);

\draw[-, thick] (v1) edge node {} (v11);
\draw[-, dashed] (v2) edge node[swap] {} (v11);
\draw[-, dashed] (v3) edge node[swap] {} (v11);
\draw[-, thick] (v4) edge node[swap] {} (v11);

\draw[-, thick] (v11) edge node {} (v10);
\draw[-, thick] (v10) edge node {} (v5);
\draw[-, thick] (v10) edge node[swap] {} (v9);

\draw[-, dashed] (v10) edge node {} (v6);
\draw[-, dashed] (v10) edge node {} (v7);
\draw[-, dashed] (v10) edge node {} (v8);
\end{footnotesize}
\end{tikzpicture}


Gruß,
Pudelmuetze

Hobbes
14-02-2009, 10:14
Pfeilspitzen werden anders definiert. Ich weiß aber nicht, wie man die Spitze größer bekommt. So wirkt sie ziemlich dünn.


\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}
\draw[>=left to,->] (0,0) -- (1,1);
\end{tikzpicture}
\end{document}