For several days I tried to find a way to put a red bullet at the intersection of two curves.
I put the code here.
Code: Select all
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{fullpage}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{calc,3d}
\begin{document}
\begin{tikzpicture}[scale=1.0,line/.style={ultra thick},
linedot/.style={dashed}]
\def\longueur{10}
\def\profondeur{4}
\def\hauteur{5}
\def\ecartement{5e-2}
\coordinate (B) at (\longueur,0,0);
\coordinate (G) at (\longueur,\hauteur,\profondeur);
\coordinate (M_bot) at (0,{\hauteur/2-\ecartement},0);
\coordinate (N_top) at (0,{\hauteur/2+\ecartement},\profondeur);
\draw[linedot] (M_bot) edge[out=359,in=140] (B);
\draw[line] (N_top) edge[out=1,in=220] (G);
\coordinate (cross) at (intersection of M_bot--B and N_top--G);
\fill[red] (cross) circle(5pt);
\end{tikzpicture}
\end{document}
Romain.