\documentclass[a4paper]{article} \pagestyle {empty} \usepackage{pstricks} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint=50 40 30 rtp2xyz,Decran=50}% \begin{pspicture}(-6,-4)(7,12) \psset{solidmemory} %% do not forget ! \codejps{ %% definition de la ligne 1 /L1 [ -0.5 -4 8.775 4.25 5.5 8.775 ] def %% la meme ligne, avec une translation /L2 L1 {1 1 1 addv3d} papply3d def } \psSolid[object=line, args=L1 aload pop, linewidth=1.5pt,linestyle=dashed,linecolor=blue] \psSolid[object=line, args=L2 aload pop, linewidth=1.5pt,linestyle=dashed,linecolor=red] \end{pspicture} \end{document}