\documentclass[pstricks,border=12pt]{standalone}
\psset{unit=.25}
\def\Atom#1{%
\begin{pspicture}[dimen=m](-12,-12)(12,12)
\pstVerb{/AA 1 5 atan def /RR 26 sqrt def}
\pscustom[fillstyle=eofill,fillcolor=red,linearc=#1]
{
\pscircle{3}
\moveto(5,-1)
\psLoop{6}
{
\translate(5,0)
\psline(0,-1)(4,-1)(4,1)(0,1)
\translate(-5,0)
\psarc(0,0){!RR}{!AA}{!60 AA sub}
\rotate{60}
}
\closepath
}
\end{pspicture}}
\begin{document}
\Atom{.5}
\Atom{0}
\end{document}
What causes the strange output for nonzero linearc below?
Output for linearc=.5

Output for linearc=0

Edit
According to Werner's comment, it is related to precision issue. Is there a smart solution to solve it?




1 5 atan... – Werner Mar 06 '14 at 06:00/AA 1 1e-6 add 5 atan defeliminates this last, big arc, but others become more visible. – Christoph Mar 06 '14 at 22:26