
我需要繪製以下圖片:
我嘗試學習如何繪製必要的元素,並專注於該主題的方法,因為。我以前從未用 LaTeX 畫過如此複雜的東西:用 LaTeX 繪製機械系統
我不知道此類繪圖所需的庫。程式碼應盡可能簡單。請教我基礎知識,我會嘗試自己畫其餘的部分。非常感謝!
答案1
嗯,機械零件的 3D 表示可能不是 Ti 的強項kZ. 我認為使用 CAD 軟體繪製這些東西要容易得多。也許以下內容可以作為起點:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex]
\draw[->] (0:0) node[above left] {$O$} -- (0:1);
\draw[->] (90:0) -- (90:1);
\draw[->] (225:0) -- (225:1);
\draw[->] (-45:0) -- (-45:5) node[below] {$W_i$};
\draw[->, dashed] (-60:0) -- (-60:5) node[below] {$W^\prime_i$};
\begin{scope}[shift={(-60:3.5)}, rotate=120]
\fill[white] (0,0.3) -- +(0.5,0)
arc[start angle=90, end angle=-90, x radius=0.15, y radius=0.3]
-- (0,-0.3) -- (0,-0.2)
arc[start angle=-90, end angle=90, x radius=0.1, y radius=0.2]
--(0,0.3) -- cycle;
\draw (0,0) circle[x radius=0.1, y radius=0.2];
\draw (0,0) circle[x radius=0.15, y radius=0.3];
\draw (0,0.3) -- +(0.5,0) arc[start angle=90, end angle=-90, x radius=0.15, y radius=0.3] -- (0,-0.3);
\end{scope}
\begin{scope}[shift={(20:3.5)}, rotate=210]
\draw (0,0) circle[x radius=0.1, y radius=0.2];
\draw (0,0) circle[x radius=0.15, y radius=0.3];
\draw (0,0.3) -- +(0.5,0) arc[start angle=90, end angle=-90, x radius=0.15, y radius=0.3] -- (0,-0.3);
\end{scope}
\draw[fill=white] (-55:3) arc[start angle=-55, end angle=15, radius=3]
to[in=95, out=95] (15:3.35)
arc[start angle=15, end angle=-55, radius=3.35]
to[in=-145, out=-145] (-55:3);
\end{tikzpicture}
\end{document}