Retour

test_tetrahedron.tex

Télécharger le fichier Fichier PDF
Image PNG
\documentclass{article}
\usepackage{pst-V3D}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}% utiliser obligatoirement ce codage !!!
% sinon affichage des lettres accentuées
% très perturbées !!!
\input{tetrahedral_object.tex}
\input{cylindre_object.tex}
 
\def\Rectangle(#1,#2)(#3,#4){
newpath
#1 #2 moveto
#3 #2 lineto
#3 #4 lineto
#1 #4 lineto
 closepath }
 
 
\definecolor{bleupale}{rgb}{0.8, .8, 1}
 
 
\pagestyle{empty}
\begin{document}
\begin{center}
\begin{pspicture*}(-5,-6)(7,4)
\psframe(-5,-6)(7,4)
\psset{THETA=-90,PHI=30,Dobs=30,Decran=20}
\planThreeDput[fillstyle=solid,fillcolor=bleupale,normale=90 -90]{\Rectangle(-10,-10)(10,10)}
\planThreeDput[normale=90 -90,fontscale=0.5]{\Grille(-10,-10)(10,10)}
\psTetrahedron[radius=2,RotZ=0,arete=false,d=5](0,5,2 3 div)
\psTetrahedron[radius=2.5,RotZ=50](0,-5,2.5 3 div)
\psTetrahedron[radius=2.5,RotZ=45,d=2](7,0, 2.5 3 div)
\psTetrahedron[radius=1,d=1e6,RotZ=30](5,-7, 1 3 div)
\psCylindre[nF=20,height=4,fillstyle=solid,fillcolor=yellow,nH=2](4,-3,0){1}
\psCylindre[nF=15,height=5,fillstyle=solid,fillcolor=gray,nH=5,RotX=-90,RotZ=45](-4,5,1){1}
\end{pspicture*}
\end{center}
 
 
\end{document}