[pstricks] I need a little help

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Dec 19 11:58:41 CET 2012


Am 18.12.2012 23:12, schrieb Cyrille Piatecki:
> With pstricks-solid3D I have some little problems I am not able to find
> the  answer by myself. Thoses problems are associated with the file here
> uhder

Cyrille,
please try _always_ your test files by yourself before posting.

Without using the algebraic option you can test the z value:

\documentclass{article}
\usepackage{pst-solides3d}

\begin{document}
  \begin{center}
  \psset{lightsrc=viewpoint,viewpoint=40 30 560 rtp2xyz,Decran=20}
  \begin{pspicture}(-4,-4)(4,4)
  \psSurface[fillcolor=cyan!10,%algebraic,%axesboxed,
   ngrid=.25 .25,incolor=yellow,linewidth=0.125\pslinewidth,grid,
   intersectionplan={[0 0 1 -5.8] [0 0 1 -0.35] },
   intersectioncolor=(bleu) (rouge),
   intersectionlinewidth=1  1,
   intersectiontype=0,](-3,-3)(5,5){ x 4 sub dup mul y 4 sub dup mul add 
-5 div 10 add
     dup -2 lt {pop -2}if }
%  {-((x-4)^2+(y-4)^2)*0.2+10}
  \axesIIID[linecolor=blue,linewidth=0.4pt,labelsep=18pt](0,0,0)(11,7,7)
\psLineIIID[linecolor=blue, linewidth=0.1pt,linearc=0.,
  doubleline=false](0,0,0)(4,0,0)(4,4,0)(4,4,8)
\psLineIIID[linecolor=blue, linewidth=0.1pt,linearc=0.,
  doubleline=false](0,0,0)(0,4,0)(4,4,0)
\psLineIIID[linecolor=red, linewidth=0.1pt,linearc=0.,
  doubleline=false](0,0,0)(2,0,0)(2,2,0)(2,2,2)
\psLineIIID[linecolor=red, linewidth=0.1pt,linearc=0.,
  doubleline=false](0,0,0)(0,2,0)(2,2,0)

\pscurve[linecolor=green](-0.32,0.45)(-0.33,.9)(-0.6,2.4)
\rput(-1.8,-.2){\tiny $x_1$}
\rput(-1,-.1){\tiny $x_0$}
\rput(.8,-0.2){\tiny $y_0$}
\rput(1.2,-.5){\tiny $y_1$}
\rput(-2.5,.4){\tiny $U_0$}
  \end{pspicture}
  \end{center}

\end{document}

Herbert


More information about the PSTricks mailing list