I'm trying to draw a simple equilateral triangle with rounded corners in Tikz. However, I can't get the rounded corners correct.
I have the following MWE which draws the triangle:
\documentclass{article}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}
\begin{document}
\begin{tikzpicture}
\draw [fill=gray!20] (0,0)--(1,0)--(0.5,1)--cycle;
\end{tikzpicture}
\end{document}
I've tried this to get rounded corners, but it has a very strange result:
\documentclass{article}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri}
\begin{document}
\begin{tikzpicture}
\draw [rounded corners=10mm,fill=gray!20] (0,0)--(1,0)--(0.5,1)--cycle;
\end{tikzpicture}
\end{document}
Any idea how to get simple rounded corners for the three corners of the triangle?
P.S. I'm not sure which libraries are needed, so I've left them all for now but I know this is probably not needed.