如何建立不以原點為中心的鎖孔輪廓?

如何建立不以原點為中心的鎖孔輪廓?

我一直在嘗試創建一個鎖孔輪廓,其中鎖孔是一個小圓,即第一象限,而主圓仍以原點為中心。我特別不想在鎖孔位於原點的位置創建鎖孔輪廓,並且似乎找不到如何做到這一點。我已經玩了一段時間了,但無法讓任何東西發揮作用。有人有建議嗎?

謝謝!

編輯:這就是我想要創建的內容:在此輸入影像描述

答案1

像這樣:

在此輸入影像描述

在圖像中被認為是 $sin{alpha} ~ \alpha$ (在較小的 \alpha 處)並且軌跡中孔的角度之間的比率約為 8:

\documentclass[tikz,
               border=3mm,
               ]{standalone}
\usetikzlibrary{arrows.meta, decorations.markings}

\begin{document}
\begin{tikzpicture}[>=Straight Barb,
decoration={markings,% switch on markings
            mark=between positions 0.2 and 0.8 step 0.25 with {\arrow[thick]{>}},
            mark=at position 0.86 with {\arrow[thick]{>}},
            mark=at position 0.98 with {\arrow[thick]{>}}
        }]
% curve
\draw[fill=gray!10, postaction={decorate}] 
            (47.5:2) arc (47.5:360:2   ) arc (0:42.5:2) 
       -- + (225:0.5) arc (25  :0  :0.25) arc(360:65:0.25) -- cycle;
% singularity
\fill[red]  (45:1.25) circle (1pt) node[inner sep=2pt,font=\footnotesize,right] {$a$};
% radius 
\draw[thick, ->] (0,0) -- node[sloped,above] {$r$} (330:2);
% coordinate axes
\draw[->] (-3,0) -- (3,0) node[right] {$\Re$};
\draw[->] (0,-3) -- (0,3) node[above] {$\Im$};
\end{tikzpicture}
\end{document}

相關內容