答案1
也许是这样的?
\documentclass[tikz,margin=3.14mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{decorations, decorations.markings}
\tikzset{corner/.style={
postaction={decorate},
decoration={markings,mark=between positions 0 and 1 step 0.2 with {\fill (0,0) circle (2pt);}}
}
}
\begin{document}
\begin{tikzpicture}
\foreach \size in {1,...,5}{
\node[regular polygon,regular polygon sides=5,draw,anchor=corner 1,rotate=-90,minimum size=\size cm,corner] {};
}
\end{tikzpicture}
\end{document}
或者更有可能的是,如果你真的想要每个边缘有多个点
\documentclass[tikz,margin=3.14mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{decorations, decorations.markings}
\tikzset{corner/.style={
postaction={decorate},
decoration={markings,mark=between positions 0 and 1 step {0.2/#1} with {\fill (0,0) circle (2pt);}}
}
}
\begin{document}
\begin{tikzpicture}
\foreach \size in {1,...,5}{
\node[regular polygon,regular polygon sides=5,draw,anchor=corner 1,rotate=-90,minimum size=\size cm,corner=\size] {};
}
\end{tikzpicture}
\end{document}