\documentclass{article} \usepackage{pst-solides3d,pst-node,pst-plot,multido,url} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{colortbl} \usepackage{array} \usepackage[a4paper,bottom=2.5cm,top=2cm]{geometry} %%\usepackage[frenchle]{babel} \makeatletter \title{\texttt{pst-solides3d} :\\ Test 1} \date{\today } \begin{document} \maketitle %\psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz} \psset{viewpoint=50 20 30 rtp2xyz} \section {Test affinage avec PSTricks} 1 seule face, en gardant la face centrale \begin{center} \psset{unit=0.75} \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,5) \psframe(-5,-4)(6,5) \psSolid[object=cube, fillcolor=red, affinagerm, fcolor=Yellow, affinage=0] \end{pspicture*} \end{center} 1 seule face \begin{center} \psset{unit=0.75} \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,5) \psframe(-5,-4)(6,5) \psSolid[object=cube, fillcolor=cyan, affinage=0] \end{pspicture*} \end{center} toutes les faces \begin{center} \psset{unit=0.75} \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,5) \psframe(-5,-4)(6,5) \psSolid[object=cube, fillcolor=cyan, affinagecoeff=.5, affinagerm, fcolor=.5 .setopacityalpha Yellow, hollow, affinage=all] \end{pspicture*} \end{center} \section {Test affinage avec jps} 1 seule face \begin{center} \psset{unit=0.75} \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,9) \psframe(-5,-4)(6,9) \codejps{ 5 newcube dup .5 0 solidaffine %%dup [.5 .6] solidputhuecolors %% ne fonctionne pas dup {[.5 .6]} exec solidputhuecolors %% fonctionne drawsolid* } \end{pspicture*} \end{center} Toutes les faces \begin{center} \psset{unit=0.75} \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,9) \psframe(-5,-4)(6,9) \codejps{ 5 newcube dup .5 solidaffine %%dup [.5 .6] solidputhuecolors %% ne fonctionne pas dup {[.5 .6]} exec solidputhuecolors %% fonctionne drawsolid* } \end{pspicture*} \end{center} \section {Test chanfreinage avec PSTricks} \begin{center} \psset{unit=0.75} \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,5) \psframe(-5,-4)(6,5) \psSolid[object=cube, a=5, fillcolor=red, chanfrein, chanfreincoeff=.2, ] \end{pspicture*} \end{center} \end{document}