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. – SebGlav Mar 14 '22 at 19:22pstricks. I don't think it's feasible in TikZ without having to dig into thepgflayer. – SebGlav Mar 14 '22 at 21:01spath3library eats for breakfast. I'm not on a device where I can cook something up myself, but someone else might be able to. – Andrew Stacey Mar 14 '22 at 21:23