\documentclass{article} \usepackage{pst-solides3d} \begin{document} \pagestyle{empty} \psset{unit=2} \begin{pspicture}(-3.5,-4)(3.2,5) \psset{lightsrc=50 50 10,lightintensity=2,viewpoint=100 50 20 rtp2xyz, Decran=30} \psset{linecolor={[cmyk]{0,0.72,1,0.45}},linewidth=0.5\pslinewidth, unit=1} \psframe[fillstyle=solid,fillcolor=green!20](-4,-4)(3.2,5) \pstVerb{/hetre {0.764 0.6 0.204 setrgbcolor} def /chene {0.568 0.427 0.086 setrgbcolor} def /bois {0.956 0.921 0.65 setrgbcolor} def }% \codejps{ /H1 { 2 [18 16] newsphere {-90 0 0 rotateOpoint3d} solidtransform {0 10.93 0 translatepoint3d} solidtransform dup (hetre) outputcolors} def /L1 { 0 0.25 10 [12 10] newcylindre {-90 0 0 rotateOpoint3d} solidtransform dup (bois) outputcolors } def /HL1{ H1 L1 solidfuz} def /HL2 { HL1 {0 0 -109.5 rotateOpoint3d} solidtransform } def /HL3 { HL2 {0 -120 0 rotateOpoint3d} solidtransform } def /HL4 { HL2 {0 120 0 rotateOpoint3d} solidtransform } def /C {3 [18 16] newsphere {90 0 0 rotateOpoint3d} solidtransform dup (chene) outputcolors} def /HL12 { HL1 HL2 solidfuz} def /HL123 { HL12 HL3 solidfuz} def /HL1234 { HL123 HL4 solidfuz} def /methane { HL1234 C solidfuz} def methane drawsolid**} \end{pspicture} \end {document}