TikZ 中出现“未知名为 Intersection-1 的形状”错误

TikZ 中出现“未知名为 Intersection-1 的形状”错误

我想在表面上画一个带箭头的圆,箭头末端不是垂直的而是笔直的。到目前为止,我已经设法绘制了所需的路径,并且已经阅读了有关路径命名的信息,但是当我将绘制命令更改为\path并取消注释代码中箭头的注释行时,我立即收到错误。

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{intersections} 
\begin{document}
\begin{tikzpicture}
%
\draw[name path global/.expanded=circle] (0,0) circle (3);
%
\foreach \x  in {-3.5,-3,...,3.5}
 {
  \draw [name path global/.expanded=line\x] (\x,3.5) -- (\x,-3.5);
%  \draw[->, name intersections={of=circle and line\x}] (\x,3.5)--(intersection-1);
    }
%
%
\end{tikzpicture}
\end{document}

我必须进行哪些更改才能使循环内的命名起作用?

相关内容