I trying to draw a path from a node to another node using three perpendicular lines instead of two. Is there any method to do that?
My LaTeX code:
\documentclass[12pt]{report}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows}
\begin{document}
\centering
% Define block styles
\tikzstyle{process} = [rectangle, draw, text width=5em, text centered]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{input} = [trapezium, draw, minimum width=2cm, text width=3em, trapezium left angle=120, trapezium right angle=60, text centered]
\begin{tikzpicture}[node distance=3cm, auto]
% Place nodes
\node [input] (input) {Image};
\node [process, right of=input] (bin_thresh_inv) {Binary threshold and invert};
\node [process, right of=bin_thresh_inv] (draw_border) {Draw borders};
\node [process, above right of=draw_border] (det_vert) {Detect vertical lines};
\node [process, below right of=draw_border] (det_hor) {Detect horizontal lines};
\node [process, below right of=det_vert, xshift=1.5cm] (gen_mask) {Generate mask and remove lines};
% Draw edges
\path [line] (input) -- (bin_thresh_inv);
\path [line] (bin_thresh_inv) -- (draw_border);
\path [line] (draw_border) |- (det_vert);
\path [line] (draw_border) |- (det_hor);
\path [line] (det_hor.east) -| (gen_mask.west);
\path [line] (det_vert.east) |- (gen_mask.west);
\end{tikzpicture}
\end{document}
Current result:
What I want:




paths.orthoTikZ library, see https://tex.stackexchange.com/q/45347/86 – Andrew Stacey Apr 16 '21 at 06:29