[pstricks] pst-solides3d

Poul Riis poul.riis at skolekom.dk
Thu Dec 5 13:54:23 CET 2019


Example?
The one Herbert posted - except for \UseRawInputEncoding:

\documentclass[pstricks]{standalone}
\usepackage{pst-solides3d}

\UseRawInputEncoding

\begin{document}
	

\def\A{3.0}
\def\B{0.5}
\begin{pspicture}(-3.5,-3.5)(3.2,13)
\psset[pst-solides3d]{viewpoint=20 -20 30
rtp2xyz,Decran=15,lightsrc=viewpoint}
\defFunction[algebraic]{shell}(u,v)%
    {\A*cos(u)*sin(v)}%
    {\A*sin(u)*sin(v)}%
    {\A*(cos(v)+ln(tan(v/2))) + \B*u}
\psSolid[object=surfaceparametree,
   linecolor={[cmyk]{1,0,1,0.5}},
   base=0 pi 8 mul  0.1 2, fillcolor=yellow!50,
   incolor=green!50, function=shell, linewidth=0.5\pslinewidth,ngrid=100 
50]%
\end{pspicture}
\end{document}



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20191205/8a7a5f0b/attachment-0001.html>


More information about the PSTricks mailing list