[pstricks] Trouble with \psSurface and direction of the hue

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Oct 31 08:34:53 CET 2010


Am 30.10.2010 20:03, schrieb David Tarazona:

> I just remembered, how I can see the solids not in perspective but
> in orthogonal projection???

pst-solides3d provides only perspective projections. But you can set the
viewpoint far away from the object.

\documentclass{minimal}
\usepackage{pst-solides3d}
\begin {document}


\psset{Decran=50,viewpoint=40 80 10 rtp2xyz}
\begin{pspicture}(-5,-3)(5,5)
 \psSurface[ngrid=72 72,linewidth=0.01pt,algebraic,
   tablez=0.8 .1 4 {} for,
  zcolor=0.666 0](-3.1416,-3.1416)(3.1416,3.1416)%
   {(3-2*cos(x+y)-2*cos(x)+2*cos(y))^(1/2)}
\end{pspicture}

\end{document}


Herbert


More information about the PSTricks mailing list