sandbox.tex
author Scott Morrison <scott@tqft.net>
Mon, 12 Dec 2011 21:05:33 -0800
changeset 965 987af9e53631
parent 963 d875a8378d83
child 966 d9e4d7e1cbf6
permissions -rw-r--r--
more diagrams, doing the complicated one in tikz again now that I've discovered pos (and an annoying bug in tikz)

\documentclass[11pt,leqno]{article}

\newcommand{\pathtotrunk}{./}
\input{preamble}
\input{text/article_preamble}
\input{text/kw_macros}

%\title{Blob Homology}
\title{Sandbox}
\begin{document}

\newcommand{\vertex}{node[circle,fill=black,inner sep=1pt] {}}


\begin{tikzpicture}
\node[circle,fill=black,inner sep=1pt] (A) at (1.73,0) {};
\node[circle,fill=black,inner sep=1pt] (B) at (-1.73,0) {};
\draw[dashed] (A) -- (B);
\node[circle,fill=black,inner sep=1pt] (C) at (0,0) {};
\node[circle,fill=black,inner sep=1pt] (D) at (0.8,0) {};
\begin{scope}[yshift=-1cm]
\path[clip] (0,0) circle (2);
\begin{scope}[yshift=2cm]
\draw (0,0) circle (2);
\node[circle,fill=black,inner sep=1pt] (L2) at (-90:2) {};
\node[circle,fill=black,inner sep=1pt] (L1) at (-120:2) {};
\end{scope}
\end{scope}
\begin{scope}[yshift=1cm]
\path[clip] (0,0) circle (2);
\begin{scope}[yshift=-2cm]
\draw (0,0) circle (2);
\node[circle,fill=black,inner sep=1pt] (U) at (90:2) {};
\end{scope}
\end{scope}
\begin{scope}
\path[clip] (0,1) circle (2);
\path[clip] (0,-1) circle (2);
\foreach \n in {1,...,6} {
	\path (B) to[out=0,in=-180] node[coordinate,pos=\n/6] (BC\n) {} (C);
	\draw[green!50!brown] (BC\n) -- +(0,1);
	\draw[green!50!brown] (BC\n) -- +(-1.5,-1);
}
\foreach \n in {0,...,6} {
	\path (C) to[out=0,in=-180] node[coordinate,pos=\n/6] (CD\n) {} (D);
	\path (L1) to[out=-30,in=-180] node[coordinate,pos=\n/6] (L1L2\n) {} (L2);
	\draw[blue] (CD\n) -- (L1L2\n);
}
\foreach \n in {0,...,6} {
	\path (L1) to[out=40,in=-140] node[coordinate,pos=\n/6] (L1C\n) {} (C);
	\path (L2) to[out=50,in=-130] node[coordinate,pos=\n/6] (L2D\n) {} (D);
	\draw[blue] (L1C\n) -- (L2D\n);
}
\end{scope}
\end{tikzpicture}
\end{document}