I am dividing a box to two halves, and plotting it in Tikz. An example code is:
\begin{figure}[!h]
\scalebox{1.5}{
\begin{tikzpicture}
\filldraw[fill=gray!40!white, draw=black] (0,0) rectangle (4,2);
\node[black](dot) at (2,1) {\textbullet};
%\node[below=0cm of dot] {\small{$x_a$}};
\draw[dashed] (1,-1) -- (3,3) ;
\node[] at (1,1.5) {\small{$r^\top x_a \geq r^\top x$}};
\node[] at (3,0.5) {\small{$r^\top x_a \leq r^\top x$}};
\node[] at (3.2,3.3) {\small{$r^\top x_a$}};
\end{tikzpicture}
}
\end{figure}
This produces:
Now I will calculate some mathematical stuff in the two halves, and again divide each half, and so on. Therefore, I need to use some Branch & Bound structure, but each element should be a geometric shape as the one above. I just need to have a tree where the elements are geometric shapes which will be inserted by me (thanks @marmot)
Any template or example link will be really appreciated.