Is there a systematic way to draw all symmetries axes of a regular polygons (with dashed lines)?
Here is a document. I would like to have an output like this:

For n=5:
[![enter image description here](https://i.stack.imgur.com/9uIFe.png)](https://i.stack.imgur.com/9uIFe.png)

For n=6:
[![enter image description here](https://i.stack.imgur.com/EEczG.png)](https://i.stack.imgur.com/EEczG.png)

(sorry for my bad drawing).

```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, calc}

\begin{document}

\begin{tikzpicture}[scale=3]
\node (a) 
[draw,  blue!0!black,rotate=90,minimum size=3cm,regular polygon, regular polygon sides=5] at (0, 0) {}; 

\foreach \x in {1,2,..., 5}
  \fill (a.corner \x) circle[radius=.5pt];
\end{tikzpicture}

\begin{tikzpicture}[scale=3]
\node (a) 
[draw,  blue!0!black,rotate=90,minimum size=3cm,regular polygon, regular polygon sides=6] at (0, 0) {}; 

\foreach \x in {1,2,..., 6}
  \fill (a.corner \x) circle[radius=.5pt];
\end{tikzpicture}

\end{document}  

```