[pstricks] Transparency

Herbert Voss Herbert.Voss at FU-Berlin.de
Sun Apr 11 09:18:54 CEST 2010


Am 10.04.2010 23:50, schrieb Didier A.:

> I'd like to draw the intersection between a cone and a plan. The
> following code works fine but the plan hides the cone and the opacity
> parameter doesn't give anything

please provide always _full_ working examples!
There is also a PSTricks mailing list: http://PSTricks.tug.org

Use opacity=0.5, because 0.05 is nearly totally transparent

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

\makeatother
\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}

Herbert


More information about the PSTricks mailing list