[pstricks] PSTricks Digest, Vol 84, Issue 4

Jon Joseph josco.jon at gmail.com
Mon Jan 4 16:50:39 CET 2010


Thanks Hebert. Works beautifully. Does pst-solides3d have a method to
fill the region between the sin curve and the cylinder?  I'm thinking
about generating a filled polygon that represents the region between
the two surfaces then using a parametric function to wrap that polygon
around the cylinder. Is there an easier way?
Jon
On Mon, Jan 4, 2010 at 1:37 AM,  <pstricks-request at tug.org> wrote:
> Send PSTricks mailing list submissions to
>        pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
>        pstricks-request at tug.org
>
> You can reach the person managing the list at
>        pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
>   1. Re: opacity in pst-solides3d (Herbert Voss)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 04 Jan 2010 08:35:48 +0100
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] opacity in pst-solides3d
> Message-ID: <4B419A54.5050704 at FU-Berlin.DE>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Am 04.01.2010 02:17, schrieb Jon Joseph:
>> The following code snippet fuses a parametrized surface with an inner cylinder. I would like the opacity of the outer surface to be around .3 (i.e. opacity=.3) and the inner cylinder to be totally opaque (opacity=1). Given my method in the code opacity only seems to have an effect if it is included in a \psset{} macro in which case both surfaces are transparent. Including opacity=k in the directives for an individual solid has no effect on the individual surfaces.  Does deactivatecolor take opacity into account? Or is something else going on? Thanks, Jon
>
> something like the attached?
>
> Herbert
>
> \listfiles
> \documentclass[12pt]{article}
> \usepackage[T1]{fontenc}
> \usepackage{pst-solides3d}
> \pagestyle{empty}
> \begin{document}
>
> \begin{pspicture}[showgrid=true](0,-2)(2,2)
> \psset{lightsrc=30 -30 30,viewpoint=30 -30 30,Decran=100,
>  linewidth=0.5\pslinewidth, ngrid=18 18,fillcolor=white} %, opacity=.3}
> \defFunction{sinshell}(u,v)
>  {u}
>  {2 u mul 1 add Sin .25 mul 1.2 add v Cos mul}
>  {2 u mul 1 add Sin .25 mul 1.2 add v Sin mul}
> \psSolid[object=cylindrecreux,%
>                action=draw**,
>                h=4, r=.75,
>                incolor=red,
>                opacity=1, % no effect
>                RotY=90,
>                name=cylindre2](0,0,0)
> \psSolid[object=surfaceparametree,
>                base=0 4 0 2 pi mul,
>                action=draw*,
>                linecolor=green,
>                function=sinshell,
>                opacity=.3,  %% No effect
>                name=cylindre1](0,0,0)
> %\psSolid[object=fusion,deactivatecolor,base=cylindre1 cylindre2, RotX=0]
> %\composeSolid
> \end{pspicture}
>
> \end{document}
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: x.png
> Type: image/png
> Size: 68891 bytes
> Desc: not available
> URL: <http://tug.org/pipermail/pstricks/attachments/20100104/761c520c/attachment.png>
>
> ------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> End of PSTricks Digest, Vol 84, Issue 4
> ***************************************
>


More information about the PSTricks mailing list