One cut to a cuboid results into two cuboids at most. Two cuts to a cuboid results into four cuboids at most. Three cuts to a cuboid results into eight cuts at most.
I want to draw illustrations for some problems associated with this sort of dissection of cuboids. I learnt from codes of Maarten Dhondt and AboAmmar yet it still has lines along. Could you help?
How to draw stacked cubes of different sizes and colors?
Best illustrations should be like this in the photo for the case of 3 cuts:
\documentclass[tikz, border=5]{standalone}
\newcommand{\drawbox}[4]{
\pgfmathsetmacro \angle {30}
\pgfmathsetmacro \xd {{2/3*cos(\angle)}}
\pgfmathsetmacro \yd {{2/3*sin(\angle)}}
\pgfmathsetmacro \x {{#1-1+(#2-1)*(\xd)}}
\pgfmathsetmacro \y {{#3-1+(#2-1)*(\yd)}}
\draw[fill=#4] (\x,\y) -- (\x+1,\y) -- (\x+1,\y+1) -- (\x,\y+1) -- cycle;
\draw[fill=#4] (\x,\y+1) -- (\x+\xd,\y+1+\yd) -- (\x+1+\xd,\y+1+\yd) -- (\x+1,\y+1) -- cycle;
\draw[fill=#4] (\x+1,\y+1) -- (\x+1+\xd,\y+1+\yd) -- (\x+1+\xd,\y+\yd) -- (\x+1,\y) -- cycle; } \usepackage{pgf,tikz}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}[scale=.7] \drawbox{3}{1}{1}{blue!21}
\drawbox{4}{1}{1}{blue!21} \drawbox{3}{0}{1}{blue!21}
\drawbox{4}{0}{1}{blue!21}
\drawbox{3}{1}{2}{blue!21} \drawbox{4}{1}{2}{blue!21}
\drawbox{3}{0}{2}{blue!21} \drawbox{4}{0}{2}{blue!21}
\drawbox{8}{1}{.431}{blue!21} \drawbox{9.4}{1}{.431}{blue!21}
\drawbox{8}{-.420}{.431}{blue!21} \drawbox{9.4}{-.420}{.431}{blue!21}
\drawbox{8}{1}{2.2}{blue!21} \drawbox{9.32}{1}{2.2}{blue!21}
\drawbox{8}{-.40}{2.2}{blue!21} \drawbox{9.32}{-.40}{2.2}{blue!21}
\end{tikzpicture}
\end{document}