Retour

pomme_01.tex

Télécharger le fichier Fichier PDF
Image PNG
\documentclass{article}
\usepackage[dvipsnames,svgnames]{pstricks}
\usepackage{pst-solides3d}
 
\begin{document}
\pagestyle{empty}
 
\psset{lightsrc=50 10 30}
\psset{viewpoint=50 -10 30 rtp2xyz,Decran=50}
\begin{pspicture*}(-8,-8)(8,8)
\psframe*[linecolor=cyan!50](-8,-8)(8,8)
\psSolid[object=grille,base=-8 8 -8 8,action=draw**,ngrid=4,linecolor=red](0,0,-3.9)
\psSolid[object=new,grid,hue=0.1 0.5,
    sommets= (sommets_pomme.dat) run,
    faces={(faces_pomme.dat) run}]%
\end{pspicture*}
 
\end{document}