%% $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}(-5,-9)(11,6)
\psframe(-5,-9)(11,6)
\psset{solidmemory,viewpoint=50 50 20 rtp2xyz,lightsrc=viewpoint,Decran=40}
\pstVerb{/X0 1.5 def}%
\psSolid[object=grille,base=-4 4 -4 12,ngrid=8 20,linewidth=0.5\pslinewidth,linecolor=red](0,0,-4)%
\psHyperboloid[hollow,incolor=yellow!50,fillcolor=ForestGreen!20,plansepare={[0 1 ConeAsymptote 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,linewidth=0.5\pslinewidth,fillcolor=ForestGreen!20,% rm=0 1 178 179,
  load=coupeHyperboloidTest0](0,7,0)
\psSolid[object=plan,definition=equation,args={[0 1 ConeAsymptote 0] 180},linecolor=blue,
  planmarks,ngrid=,base=-4 4 -5.55 5.55,showBase,action=draw]
\psSolid[object=plan,definition=equation,args={[0 1 ConeAsymptote 0] 180},base=-5.5 5.5 -5.55 5.55,
   action=none,name=monplan]%
\psProjection[object=droite,plan=monplan,linewidth=1.5\pslinewidth,linecolor=red,args=1 5 1 -5]
\psProjection[object=droite,linewidth=1.5\pslinewidth,plan=monplan,linecolor=red,args=-1 5 -1 -5]
\composeSolid
\gridIIID[Zmin=-4,Zmax=4](-4,4)(-4,12)
\end{pspicture}
\end{document}
\end{externalDocument}
