如何在乳胶中绘制八面体

如何在乳胶中绘制八面体

我需要帮助在 LaTeX 和 TikZ 中绘制八面体的形状,如下所示。谢谢!我开始绘制一个八面体,但不幸的是,我不知道如何将顶点放入其中。

在此处输入图片描述

这就是我所做的

\begin{tikzpicture}[scale=3]
\coordinate (A1) at (0,0);
\coordinate (A2) at (0.6,0.2);
\coordinate (A3) at (1,0);
\coordinate (A4) at (0.4,-0.2);
\coordinate (B1) at (0.5,0.5);
\coordinate (B2) at (0.5,-0.5);

\draw[dashed] (A1) -- (A2) -- (A3);
\draw (A1) -- (A4) -- (A3);
\draw[dashed] (B1) -- (A2) -- (B2);
\draw (B1) -- (A4) -- (B2);
\draw (B1) -- (A1) -- (B2) -- (A3) --cycle;
\end{tikzpicture}

答案1

在此处输入图片描述

\documentclass{article}
\usepackage{tikz-cd}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}

\begin{tikzcd}[row sep=huge, column sep=huge]
                                 & b' \arrow[dr] \arrow[ddl, squiggly] \arrow[from=ddr, crossing over]                &                                        \\
c' \arrow[ur] \arrow[d,squiggly] &                                                                                    & a' \arrow[ll, squiggly, crossing over] \\
a \arrow[rr] \arrow[dr]          &                                                                                    & c \arrow[u]                            \\
                                 & b \arrow[uul, crossing over] \arrow[ur] \arrow[from=uur, squiggly, crossing over]  &
\end{tikzcd}

\end{document}

相关内容