[pstricks] Not out the box

Herbert Voss Herbert.Voss at FU-Berlin.de
Mon Apr 12 19:36:44 CEST 2010


Am 12.04.2010 11:54, schrieb Didier A.:
> Hello,
> 
> Is there a way to limit a surface inside the box of axesboxed? For
> instance, in the following code I'd like to the intersection (a
> circle) between the surface and the plan z=-5

\documentclass[a4paper]{article}
\usepackage{pst-solides3d}

\begin {document}

\psset{unit=0.5,viewpoint=50 60 30 rtp2xyz,Decran=50}
  \psset{lightsrc=viewpoint}
  \begin{pspicture}(-4,-5)(6,8)
    \psSurface[ngrid=.25 .25,incolor=yellow,linewidth=0.5\pslinewidth,
    axesboxed,
    Zmin=-5,Zmax=2,hue=0 1](-5,-5)(5,5){%
    1 0.5 x dup mul y dup mul add mul sub dup -5 lt { pop -5 }if }
  \end{pspicture}

\end {document}

Herbert



More information about the PSTricks mailing list