Eu gostaria de tikz algo assim:
Com:
% https://tex.stackexchange.com/q/245944
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\standaloneenv{tikzpicture}
\begin{document}
\usetikzlibrary{calc,shapes.geometric}
\begin{tikzpicture}
\coordinate (hole) at (1ex, 3ex);
\node[trapezium, trapezium left angle=120, trapezium right angle=60, minimum width=4ex, minimum height=4ex, rotate=30] (layer) {};
\path[draw, even odd rule]
{(layer.top left corner) -- (layer.bottom left corner) -- (layer.bottom right corner) -- (layer.top right corner) -- cycle}
{($(layer.bottom left corner)+(hole)$) ellipse [draw, x radius=1.0ex,y radius=0.8ex, rotate=0]};
\draw[-] ($(layer.bottom left corner)+(hole)$) -- +(0ex, 4ex);
\draw[->] ($(layer.bottom left corner)+(hole)+(0ex,-3ex)$) -- +(0ex,-2ex);
\end{tikzpicture}
\end{document}
Posso produzir:
No entanto, esta solução parece grosseira (redesenhar o trapézio, dividir a flecha em duas, ...) e um pouco sem vida.
Como posso usar even odd rule
sem trapezium
o extra \path
e desenhar uma flecha no even odd rule
buraco sem adivinhar o tamanho do espaço entre as setas?
Responder1
Isso usa a regra par ímpar em a \clip
. Observe que você ainda precisa separar o primeiro plano e o plano de fundo para objetos 3D.
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\standaloneenv{tikzpicture}
\begin{document}
\usetikzlibrary{calc,shapes.geometric}
\begin{tikzpicture}
\coordinate (hole) at (1ex, 3ex);
\node[trapezium, trapezium left angle=120, trapezium right angle=60, minimum width=4ex, minimum height=4ex, rotate=30] (layer) {};
\path[draw]
(layer.top left corner) -- (layer.bottom left corner) -- (layer.bottom right corner) -- (layer.top right corner) -- cycle
($(layer.bottom left corner)+(hole)$) coordinate(C) ellipse [draw, x radius=1.0ex,y radius=0.8ex, rotate=0];
\path[->] (C) ++(0ex, 4ex) -- ++(0ex,-8ex);% grow bounding box
\begin{scope}[even odd rule]
\clip (current bounding box.south west) rectangle (current bounding box.north east)
(layer.top left corner) -- (layer.bottom left corner) -- (layer.bottom right corner) -- cycle;
\draw[->] (C) ++(0ex, 4ex) -- ++(0ex,-8ex);
\end{scope}
\end{tikzpicture}
\end{document}