[pstricks] object=courbe in fusion

Juergen Gilg gilg at acrotex.net
Fri Jul 30 11:10:14 CEST 2010


Dear Ziggy,

try this out:

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!!!

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.

\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}
\defFunction[algebraic]{G'}(t){0}{1}{-3*t}
\psSolid[%
object=courbe,
r=0,
range=-1.0 1.0,
linecolor=blue,
linewidth=2.5pt,
function=G,
action=draw,
name=curvey,
](0.0,0,0)

\end{pspicture}
\end{document}

Hope this helps so far.

Regards,

Juergen

-- 
 Jürgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    gilg at acrotex.net




More information about the PSTricks mailing list