I'm trying to draw a diagram with a curved line inside of the circle, attaching to the edges. What I want is similar to that described here. Here is my code:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw,circle,minimum size=40pt,red](circ){};
\draw[blue,looseness=1.5]
(circ.west) to [out=70,in =110]
(circ.center) to [out=-70,in=-110] (circ.east);
\end{tikzpicture}
\end{document}
The problem, is that the edges of the curve do not align in the way I would like with the edge of the circle. What I want is for the blue curve to extend only to the internal edge of the red circle. Now, I could simply draw the curve first, and use a invisible node, but the problem there is that some of it would still be visible since it extends past the outer edge of the circle. Also, it seems like a decidedly inelegant solution.
circ
node for the clipping path?