[pstricks] About pst-solides 3d

mathias legrand legrand.mathias at gmail.com
Mon Aug 16 18:26:52 CEST 2010


  Hello,

I'm considering example ex2.tex from http://tug.org/PSTricks/main.cgi/
Is there a chance that soon, this piece of code will provide
an image correctly showing what's before the blue plane, and what's 
behind it?
In this example, everything is behind it, and should not: not an easy task
probably.

Thanks

M.



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

\begin{document}

\psset{unit=0.5}
\begin{pspicture}(-7,-7)(10,12)
   \psset{viewpoint=20 10 15,Decran=60,lightsrc=20 10 5}
   \defFunction{cone}(u,v){u v Cos mul}{u v Sin mul}{u}
   \psSolid[object=surfaceparametree,base=-2 2 0 2 pi mul,
      inhue=0.8 0.2,hue=0.8 0.2,
      function=cone,linewidth=0.5\pslinewidth,
      ngrid=25 40,fillcolor=cyan!50,
      intersectionplan={[1 0 0 -1]},
      intersectioncolor=(bleu),
      intersectionlinewidth=3,
      intersectiontype=0]%
   \gridIIID[Zmin=-2,Zmax=2](-2,2)(-2,2)
   \psSolid[object=plan,definition=equation,
     args={[1 0 0 -1]},
     fillcolor=blue!50,
     base=-2 2 -2.5 2.5,opacity=0.5]
\end{pspicture}

\end{document}


More information about the PSTricks mailing list