%% $Id: pst-ellipsoid-doc-exa02.tex 1284 2026-06-08 05:56:52Z herbert $

\begin{externalDocument}[
  compiler=lualatex, runs=1, crop, cleanup,
  %xindex, xindexOptions={-l DE --config AU},
  %mpwidth=0.6\linewidth, 
  usefancyvrb=false,
  docType=latex,
]{voss}
\DocumentMetadata{}
\documentclass{article}
\pagestyle{empty}
\usepackage{libertinus}
%StartVisiblePreamble
\usepackage[dvipsnames,svgnames]{pstricks}
\usepackage{pst-ellipsoid}
%StopVisiblePreamble
\begin{document}
\begin{pspicture}(-3,-4)(3,4)
\pstVerb{/n1 54 def /n2 24 def /coquille {0.984 0.95 0.718 setrgbcolor} def}%
\psset{viewpoint=50 20 20 rtp2xyz,Decran=100,lightsrc=viewpoint}
\psSolid[object=ellipsoid,a=3.5,b=2,c=1.5,ngrid=n1 n2,base=0 360 -90 90,fillcolor=blue,linewidth=0.01,
    fcol=0 2 n1 2 sub {/i exch def
             i n2 mul 2 i n2 mul n2 add 1 sub {(coquille)} for} for
             1 2 n1 1 sub {/i exch def
             i n2 mul 1 add 2 i n2 mul n2 add 1 sub {(coquille)} for} for]
\axesIIID(3,2,1)(4,3,2)
\end{pspicture}
\end{document}
\end{externalDocument}
