答案1
运行lualatex
\DocumentMetadata{}
\documentclass[pstricks]{standalone}
\usepackage{pst-solides3d}
\begin{document}
\begin{pspicture}[solidmemory](-5,-4)(5,7)
\psset{Decran=15,viewpoint=10 10 7,object=cube,a=2,action=draw**,fillcolor=magenta!20}
\psSolid(0,0,0)\psSolid(0,0,2)\psSolid(0,0,4)
\psSolid(2,0,0)
\psSolid(0,2,0)
\psSolid(0,2,2)
\axesIIID[showOrigin=false](3,3,5)(4,4,6)
\end{pspicture}
\end{document}