[pstricks] object=courbe in fusion

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jul 30 12:35:27 CEST 2010


Am 30.07.2010 11:10, schrieb Juergen Gilg:
> I removed the COURBE from the fusion and added it with draw** last -- so
> it overwrites the two fusioned objects. This is not exactly what you
> want, but you see a BLUE CURVE!!!

Jürgen,
when drawing the curve in two pieces it looks betterö

\documentclass[11pt]{article}
%\usepackage[distiller]{pstricks}
\usepackage{pst-solides3d}
\begin{document}

\begin{pspicture}(-1.5,-2)(1.5,3)
\psset{solidmemory}
%\psset{unit=0.5}
\psset{lightsrc=50 80 10, viewpoint=15 60 20 rtp2xyz,Decran=50}
% first surface
\defFunction[algebraic]{Func}(x,y){}{}{ (x^2-3*y^2)/2 }{}{}
\psSolid[
object=surface,
fillcolor=lightgray,
incolor=green!30,
function=Func,
base=-0.5 1.5 -1 1.0,
ngrid=0.1 0.1,
action=none,
name=graphsurfA](0,0,0)
%slicing plane in y direction
\psSolid[object=grille,
base=-1.0 1.5 -2.0 1.0,
RotY=90,
ngrid=15 15,
action=none,
name=planey
](1,0.5,0.25)
% intersection curve

% combine both surfaces
\psSolid[
object=fusion,
action=draw**,
base=graphsurfA planey,
 ]
%
\composeSolid
\defFunction[algebraic]{G}(t){1}{t}{0.5-1.5*t^2}
\psSolid[%
object=courbe,
r=0,
range=0 1,
linecolor=blue,
linewidth=2.5pt,
function=G,
action=draw,
name=curvey,
](0.0,0,0)
\psSolid[%
object=courbe,
r=0,
range=-1 -0.45,
linecolor=blue,
linewidth=2.5pt,
function=G,
action=draw,
name=curvey,
](0.0,0,0)

\end{pspicture}
\end{document}


> When i did the transparent examples there was a workaround which allowed
> transparency (that was in early 2008) -- i never tested that afterwards.
> In the actual version the transparency seems not to be supported.
> 
> Maybe Jean-Paul, Manuel or Herbert know where the transparency has gone.

no, the opacity option should work with current TeXlive or MiKTeX
distribution.

Herbert


More information about the PSTricks mailing list