I would like to realize beautiful rounded polygons enclosing some nodes.
If we use \draw[rounded corners]
the resulting polygon does not include our vertices.
\documentclass[border=5]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
%Coordinates of the vertices
\foreach \i/\r in {0/1,1/0.8,2/1.2,3/1,4/0.9,5/1.1}
\coordinate (c\i) at (60*\i:\r) {};
%The vertices
\foreach \i in {0,...,5} \node[fill=black,circle,inner sep=1pt] at (c\i) {};
%The Polygon
\draw[rounded corners=5] (c0)--(c1)--(c2)--(c3)--(c4)--(c5)--cycle;
\end{tikzpicture}
\end{document}
We can shift the center points of the polygon like this, but for each node the direction of shifting changes and had to be calculated.
I know of the two approaches in this very much related Question but both answers have their drawbacks. Symbol 1s answer actually uses filldraw
so we can not have multiple polygons intersect. My answer is just ridiculously slow for compiling.
So my answer is: What is a nice way of drawing a polygon around some nodes?