绘制弯曲的箭头

绘制弯曲的箭头

怎样才能使我的两支箭更像照片中的箭呢?

箭

\documentclass[10pt, border=.3cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0)--(4,1)--(4,7)--(0,6)--(-4,7)--(-4,1)--cycle;
\draw(0,0)--(0,6);
\node (a) at (.715, 6.5) {};
\node (b) at (-.715, 6.5) {};
\draw[->] (a)  to [out=120,in=60] (b);

\draw (9,7)--(13,7)--(12,3.5)--(13,0)--(9,0)--(8,3.5)--cycle;
\draw(12,3.5)--(8,3.5);
\draw(13,7)--(9.175,7.1)--(9.125,7.);
\draw(13,0)--(9.14,-.12)--(9.1,0);

\node (d) at (12.75, 3.8) {};
\node (c) at (12.5, 3.2) {};
\draw[->] (c)  to [out=90,in=90] (d);

\end{tikzpicture}
\end{document}

答案1

将点 (c) 和 (d) 放置在与 (a) 和 (b) 相同的位置。使用适当的inout关键字值,并使用关键字控制曲线的“圆度” looseness

\documentclass[10pt, border=.3cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0)--(4,1)--(4,7)--(0,6)--(-4,7)--(-4,1)--cycle;
\draw(0,0)--(0,6);
\node (a) at (.715, 6.5) {};
\node (b) at (-.715, 6.5) {};
\draw[->] (a)  to [out=90,in=90, looseness=2] (b);


\draw (9,7)--(13,7)--(12,3.5)--(13,0)--(9,0)--(8,3.5)--cycle;
\draw(12,3.5)--(8,3.5);
\draw(13,7)--(9.175,7.1)--(9.125,7.);
\draw(13,0)--(9.14,-.12)--(9.1,0);

\node (d) at (12.5, 3.5 + .715) {};
\node (c) at (12.5, 3.5 - .715) {};
\draw[->] (c)  to [out=0,in=0,looseness=2] (d);

\end{tikzpicture}
\end{document}

结果:

结果

相关内容