I'm trying to draw a three dimensional object inside which sits surface (blue) and a curve (green). To make it look more 3d I'd like to dash the part of the curve (green) in between the two red dots on the right side of the diagram.
Here is my example:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=1.0]
%
\draw [line width=1pt] plot [smooth cycle, tension=1] coordinates {(0,0) (1,2) (3,3) (5,0) (2,-2)};
%
\filldraw[line width=1pt, top color=blue]
(0.28, 0.5) to [out=20, in=70] (4.96,0) to [out=250, in=200](0.28,0.5);
%
\draw [green, line width=1pt] plot [smooth cycle, tension=1] coordinates {(3,2.99) (3,0) (3,-1.85) (1.5,-1) (1,0.5)};
\node [red] at (3.1,1.12) {$\bullet$};
\node [red] at (0.87,-0.41) {$\bullet$};
\node [red] at (3.05,-0.78) {$\bullet$};
\end{tikzpicture}
\end{center}
\end{document}
Does anyone know how to do this?


dahsedto the corresponding line:\draw [dashed,green...– Cfun Jul 07 '16 at 10:57