# Use TikZ “circle connection bar” with non circular shapes

Is there any way to use the circle connection bar feature from the mindmap Tikz library with non circular node shapes?

Here a non working Example:

\documentclass[]{article}

\usepackage{tikz}
\usetikzlibrary{mindmap}
\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}
\node[circle, draw] (a) {a};
\node[rectangle, rounded corners, draw, above right=of a] (b) {b};

\path (a) to[circle connection bar] (b);
\end{tikzpicture}

\end{document}

• No, not really. Take a look at the PGFmanual and the sections about the circle connection bar decoration and the circle connection bar to-path. If you use the decoration, you can give the values start radius and end radius. It would also be best to use a true rectangular shape with rounded corners so that the anchors are set correctly. However, this will all get very complex if you want to connect to irregular things/shape. – Qrrbrbirlbel Oct 29 '13 at 16:29
• @Qrrbrbirlbel Do you want to write an answer? ('No' can be an answer as well, however boring it is.) – Torbjørn T. Nov 2 '13 at 21:55

No, not really. Take a look at the PGF manual and the sections about the circle connection bar decoration and the circle connection bar to-path. If you use the decoration, you can give the values start radius and end radius. It would also be best to use a true rectangular shape with rounded corners so that the anchors are set correctly. However, this will all get very complex if you want to connect to irregular things/shape.