\makeatletter
\pstheader{sphereII.pro}

\define@key[psset]{pst-V3D}{sepTheta}{\def\pst@VIIID@sepTheta{#1}} % décalage des méridiens

\psset[pst-V3D]{thetaLight=70,phiLight=60,dLight=10,hsbcolor=0.15 0.5,sepTheta=5}%,hsbcolorB=0.7}%

\def\psSphereII{\pst@object{psSphereII}}
\def\psSphereII@i(#1,#2,#3)#4{{%
% (#1,#2,#3) coordonnées du centre
% #4 rayon
  \begin@ClosedObj%
    \use@par
    \addto@pscode{%
    1 setlinejoin
    \tx@parametresIIID
/sepTheta \pst@VIIID@sepTheta\space def
%
    /Rsphere #4 def
    /increment 10 def
    /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
/condition {PSfacette 0 ge} def
/departPhi -90 def
MaillageSphereII
 }% fin du code ps
\end@ClosedObj}}
\makeatother
%
