Retour

sphere_object.tex

Télécharger le fichier
\makeatletter
 
\pstheader{sphere.pro}
 
\def\psSphere{\pst@object{psSphere}}
\def\psSphere@i(#1,#2,#3)#4{{%
% (#1,#2,#3) coordonnées du centre
% #4 rayon
  \begin@ClosedObj%
    \use@par
    \addto@pscode{%
    1 setlinejoin
    \tx@parametresIIID
    \ifPst@visibility /condition { PSfacette 0 gt } def \else /condition { PSfacette 0 le} def \fi
    /CX #1 def
    /CY #2 def
    /CZ #3 def
/PointsApresTransformations {
3 dict begin
   M11 Xpoint mul M12 Ypoint mul add M13 Zpoint mul add CX add
   M21 Xpoint mul M22 Ypoint mul add M23 Zpoint mul add CY add
   M31 Xpoint mul M32 Ypoint mul add M33 Zpoint mul add CZ add
end
} def
      /Rsphere #4 def
      /increment 10 def
    /departPhi -90 def
    MaillageSphere
    }% fin du code ps
  \showpointsfalse%
  \end@ClosedObj%
}\ignorespaces}
 
\makeatother