Retour

ex_10.tex

Télécharger le fichier Fichier PDF
Image PNG
\documentclass[a4paper]{article}
\usepackage{pst-solides3d}
\pagestyle{empty}
\begin{document}
 
%@AUTEUR: Juergen Gilg
\psset[pst-solides3d]{viewpoint=10 9 12,SphericalCoor,
	Decran=60,lightsrc=15 5 10}
\begin{pspicture}(-6,-11)(-6,7)
\rput(0,0){
\defFunction[algebraic]{klein}(u,v){cos(u)*cos(v)*(abs(cos(7*v/4))^1.7 + 
    abs(sin(7*v/4))^1.7)^(-1/0.2)*(abs(cos(7*u/4))^1.7 + 
    abs(sin(7*u/4))^1.7)^(-1/0.2)}%
{sin(u)*(abs(cos(7*u/4))^1.7 + abs(sin(7*u/4))^1.7)^(-1/0.2)}%
{cos(u)*sin(v)*(abs(cos(7*v/4))^1.7 + 
    abs(sin(7*v/4))^1.7)^(-1/0.2)*(abs(cos(7*u/4))^1.7 + 
    abs(sin(7*u/4))^1.7)^(-1/0.2)}
\psSolid[object=surfaceparametree,
    base=pi neg 2 div pi 2 div  0 pi 2 mul,
    linecolor={[cmyk]{1,0,1,0.5}},linewidth=0.75\pslinewidth,
    incolor=green,
    fillcolor=green,
    ngrid=60,
    %RotY=90,
    RotX=-90,
    function=klein]%
}
\end{pspicture}
 
\end{document}