답변1
활용하실 수 있습니다tikz-3dplot큐브를 쉽게 그릴 수 있는 패키지입니다. 아래 그림에서는 불완전한 솔루션을 그리고 있지만 나머지는 쉽게 완료할 수 있습니다.
\documentclass[border={10}]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{calc}
\begin{document}
\tdplotsetmaincoords{80}{125} % perspective angles
\begin{tikzpicture}[tdplot_main_coords]
\coordinate (O) at (0,0,0);
\draw[dashed] (O) -- (4,0,0);
\draw[dashed] (O) -- (0,8,0);
\draw[dashed] (O) -- (0,0,4);
%draw the top and bottom of the cube
\draw[fill=blue!5] (O) -- (0,2,0) -- (2,2,0) -- (2,0,0) -- cycle;
\draw[fill=red!5 ] (O) -- (0,2,0) -- (0,2,2) -- (0,0,2) -- cycle;
\draw[fill=red!5 ] (O) -- (0,0,2) -- (2,0,2) -- (2,0,0) -- cycle;
\draw[fill=red!5 ] (0,0,2) -- (0,2,2) -- (2,2,2) -- (2,0,2) -- cycle;
\draw[fill=red!5 ] (2,2,2) -- (2,2,0) -- (2,0,0) -- (2,0,2) -- cycle;
\draw[fill=red!5 ] (0,2,2) -- (2,2,2) -- (2,2,0) -- (0,2,0) -- cycle;
\node (A) at (2,1,1) {\Huge A};
\draw[very thick, ->] (1,2,1) -- node[midway,above] {$P_{1}$} ( 1,3.3,1);
\draw[fill=blue!5] (0,4,0) -- (0,4,2) -- (2,4,2) -- (2,4,0) -- cycle;
\draw[fill=blue!5] (2,4,0) -- (2,4,2) -- (2,6,2) -- (2,6,0) -- cycle;
\draw[fill=blue!5] (2,6,2) -- (2,6,0) -- (0,6,0) -- (0,6,2) -- cycle;
\node (A) at (2,5,1) {\Huge B};
\end{tikzpicture}
\end{document}