Retour

Y.tex

Télécharger le fichier Fichier PDF
Image PNG
\documentclass{article}
\usepackage[dvipsnames,svgnames]{pstricks}
\usepackage{pst-solides3d}
\begin{document}
\pagestyle{empty}
 
\def\baseY{2.81332   2.64933
           1.9373   2.64933
           1.9373   2.57329
           2.06811   2.56451
           2.15327   2.54176
           2.19942   2.50185
           2.21329   2.44133
           2.19876   2.37482
           2.15729   2.29328
           1.58535   1.38933
           0.993285   2.27734
           0.942783   2.37276
           0.925292   2.45332
           0.935967   2.50062
           0.969224   2.53527
           1.02654   2.55794
           1.10932   2.56935
           1.14881   2.56984
           1.20933   2.57329
           1.20933   2.64933
           0.0893431   2.64933
           0.0893431   2.57329
           0.155858   2.56714
           0.21531   2.55112
           0.273203   2.51975
           0.335283   2.46777
           0.407135   2.38976
           0.494261   2.28022
           0.602491   2.13389
           0.737327   1.94535
           1.26131   1.17731
           1.26131   0.481286
           1.25885   0.364599
           1.24932   0.273531
           1.22945   0.204717
           1.19578   0.15479
           1.14504   0.120383
           1.07392   0.0982117
           0.979161   0.0849909
           0.857299   0.077354
           0.857299   0.00131387
           2.08133   0.00131387
           2.08133   0.077354
           1.96136   0.0826095
           1.86668   0.094188
           1.7945   0.114553
           1.74178   0.14625
           1.70581   0.191907
           1.68364   0.253905
           1.67239   0.334872
           1.66935   0.437354
           1.66935   1.21328
           2.26133   2.1173
           2.42179   2.33474
           2.55227   2.4713
           2.67528   2.54472
           2.81332   2.57329 }
 
\psset{lightsrc=40 20 25,viewpoint=50 10 20 rtp2xyz,Decran=30}
\begin{pspicture}(-6,-2)(6,6)
\psframe(-6,-2)(6,6)
\psSolid[object=grille,base=0 4 -10 10,hue=0 1,grid]%
\psSolid[object=prisme,h=1,hue=0 1,incolor=yellow,
   base=\baseY,ngrid=1,decal=1,RotZ=90,RotX=90,unit=4](0,-1,0)
\end{pspicture}
 
\end{document}