%% $Id: pst-hyperboloid-doc-exa4.tex 1273 2026-06-02 10:47:27Z herbert $

\begin{externalDocument}[
  compiler=lualatex, runs=1, crop,
  %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-hyperboloid}
%StopVisiblePreamble
\begin{document}
\begin{pspicture}(-8,-7)(5,6)
\psframe(-8,-7)(5,6)
\psset{solidmemory,viewpoint=50 60 20 rtp2xyz,lightsrc=viewpoint,Decran=40}
\pstVerb{/X0 0.5 def}%
\psSolid[object=grille,base=-3 8 -4 4,ngrid=11 8,linewidth=0.5\pslinewidth,linecolor=red](0,0,-4)%
\psHyperboloid[hollow,R=3,incolor=yellow!50,fillcolor=ForestGreen!20,
  plansepare={[1 0 1 0]},name=coupeHyperboloidTest,action=none]
\psSolid[object=load,incolor=yellow!50,fillcolor=ForestGreen!20,linewidth=0.5\pslinewidth,
  rm=0,% 1,
  load=coupeHyperboloidTest1]
\psSolid[object=load,incolor=yellow!50,fillcolor=ForestGreen!20,linewidth=0.5\pslinewidth,%rm=0 1,
  load=coupeHyperboloidTest0](5,0,0)
\defFunction[algebraic]{ellipse}(t){DemiAxeFocal*cos(t)}{GrandAxe*sin(t)}{}
\psSolid[object=plan,definition=equation,args={[1 0 1 0] 90},linecolor=red,planmarks,
   base=-4 4 -4 2 sqrt mul 3 2 sqrt mul,showBase,action=draw]%
\defFunction[algebraic]{ellipse}(t){DemiAxeFocal*cos(t)}{GrandAxe*sin(t)}{}
\psSolid[object=plan,definition=equation,args={[1 0 1 0] 90},base=-10 10 -10 10,action=none,
  name=monplan]%
\psProjection[object=courbeR2,plan=monplan,range=0 2 pi mul,resolution=360,linecolor=red,
  fillstyle=solid,opacity=0.5,linewidth=1.5\pslinewidth,function=ellipse]%
\composeSolid
\gridIIID[Zmin=-4,Zmax=4](-3,8)(-4,4)
\end{pspicture}
\end{document}
\end{externalDocument}
