有没有办法使用 TQFT tikz 包创建扭曲共边,即看起来相互交叉/下方的圆柱体?
答案1
是的,你可以画一对重叠的cylinder to next
和cylinder to prior
。at=(<coordinate>)
键用于将第二个圆柱体的起点定位在与第一个圆柱体的端点正交的点上。
\documentclass[tikz]{standalone}
\usetikzlibrary{tqft}
\begin{document}
\begin{tikzpicture}[
tqft/.cd,
cobordism/.style={draw},
every upper boundary component/.style={draw},
every lower boundary component/.style={draw},
]
\pic [tqft/cylinder to next,anchor=incoming boundary 1,name=c];
\pic [tqft/cylinder to prior,anchor=incoming boundary 1,
at=(c-outgoing boundary |- c-incoming boundary)];
\end{tikzpicture}
\end{document}