Does a solution already exist for this feature request? I want to draw 90°-corners with two 45°-bends w/o doing it manually (quite tedious). I am looking for something similar to rounded corners like "bended corners".
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[bended corners=0.1cm] (0,0) rectangle (5,5);
\end{tikzpicture}
\end{document}
The result should like the one of this code:
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
%\draw[bended corners=0.1cm] (0,0) rectangle (5,5);
\draw (0,0) -- (0.9,0) -- (1,0.1) -- (1,1);
\end{tikzpicture}
\end{document}