Consider the following MWE (inspired by this topic) where I try to draw a brick:
Code: Select all
\documentclass{article}
\usepackage{auto-pst-pdf,pst-solides3d,pstricks-add}
%\usepackage{siunitx}
\definecolor{nicered}{rgb}{0.796,0.255,0.329}
\begin{document}
\begin{figure}
\centering
\psset{unit=5cm,viewpoint=10 -30 15 rtp2xyz,Decran=9}
\begin{pspicture}[solidmemory](-5,-5)(6,12)
\psSolid[object=parallelepiped,a=2.28,b=1.08,c=0.54,RotZ=30,fillcolor=nicered,name=brick,action=draw*](0 0 0)
\multido{\iA=0+1}{8}{%
\psSolid[object=point,definition=solidgetsommet,args=brick \iA,action=none,name=P\iA]
\uput[90](P\iA){$P_{\iA}$}
}
% \psset{offset=12pt,nrot=:U}
\psSolid[object=line,linecolor=green,args=P0 P4]
% \ncput*{$h = \SI{5.4}{\cm}$}
\psSolid[object=line,linecolor=green,args=P4 P7]
% \ncput*{$b = \SI{10.8}{\cm}$}
\psSolid[object=line,linecolor=green,args=P7 P6]
% \ncput*{$l = \SI{22.8}{\cm}$}
\end{pspicture}
\end{figure}
\end{document}

\ncput*
is not working. Furthermore, I would like to put a node $P_i$ at every corner of the brick, but \uput
seems to have no effect here.How do I do these things?
Thank you in advance!