Retour

test_dodecahedron.tex

Télécharger le fichier
\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 !!!
%\usepackage[frenchb]{babel}
\usepackage[a4paper]{geometry}
\input{dodecahedral_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=-60,PHI=30,Dobs=30,Decran=20}
\psset[pst-V3D]{thetaLight=-40,phiLight=20,dLight=100,hsbcolor=0.17 0.5}%
\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)}
\psDodecahedron[radius=2.5,RotZ=36,arete=false](0,5,0.7946545 2.5 mul)
\psDodecahedron[radius=2.5,RotZ=20](0,-5,0.7946545 2.5 mul)
\psDodecahedron[radius=2.5,RotZ=10,d=2](7,0,0.7946545 2.5 mul)
\psDodecahedron[radius=1.5,RotZ=-20,d=1e6,arete=false](5,-7,0.7946545 1.5 mul)
\end{pspicture*}
\end{center}
 
 
\end{document}