Here is a simple path, which has a symmetry:
\begin{document}
\begin{tikzpicture}
\draw[thick] (0,0) -- ++(-9,0) -- ++(5,3) -- ++(2,7) -- ++(2,0);
\draw[green,thick] (0,10) -- ++(2,0) -- ++(2,-7) -- ++(5,-3) -- ++(-9,0);
\end{tikzpicture}
\end{document}
Now instead of drawing the green part manually, would it be possible to just say -- mirror cycle
or similar and draw it automatically? I know there are ways as explained in Can we mirror a part in tikz ("axial symmetry", "reflection")? but there the path is not continous and it requires an extra environment, where the path is copied, so there is no reduction in maintanence, when the path changes.
\newcommand{\mypath}{...}
and reuse it into the mirror scope.pstricks
. I don't think it's feasible in TikZ without having to dig into thepgf
layer.spath3
library eats for breakfast. I'm not on a device where I can cook something up myself, but someone else might be able to.