[pstricks] intersection jaggies

Jon Joseph josco.jon at gmail.com
Sat Jun 16 16:24:55 CEST 2012


Thanks Herbert.  I'm still learning when I can do what in pst-solides
Jon
On Jun 16, 2012, at 7:33 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: intersection jaggies (Herbert Voss)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 16 Jun 2012 14:33:14 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: <pstricks at tug.org>
> Subject: Re: [pstricks] intersection jaggies
> Message-ID: <4FDC7D0A.90709 at FU-Berlin.DE>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
> 
> Am 14.06.2012 21:48, schrieb Jon Joseph:
>> I have three questions regarding the output from the code below:
>> 
>> 1)  Notice the jaggedness at the intersection of the plane and the hyperboloid.  Is there any way to smooth this without requiring the ngrid parameter to be smaller than I have it?
>> 
>> 2)  I know that when I do a fusion parameters like linecolor are lost but incolor and fillcolor are retained (the one I really want is opacity but it is tossed as well). Is it a technical impossibility to retain these settings?
>> 
>> 3) The \composeSolid macro does not seem to be needed. Is this true in all cases?
> 
> draw the interlines as functions:
> 
> \documentclass{article}
> \usepackage{pst-solides3d}
> 
> \begin{document}
> 
> \psset{viewpoint=50 30 30 rtp2xyz,Decran=50}
> \psset{lightsrc=viewpoint}
> \begin{pspicture}[solidmemory](-7,-8)(7,8)
> \defFunction[algebraic]{plane2}(u,v){0}{u}{v}%
> \defFunction[algebraic]{hyperboloid}(u,v){(1+u^2)^0.5*cos(v)}{(1+u^2)^0.5 * 
> sin(v)}{u}%
> \psSolid[object=surfaceparametree, linecolor=blue!40, base=-3 3 0 6.28,
>    fillcolor=cyan!50,incolor=green!50, function=hyperboloid, ngrid=.15 
> .15,
>    action=none,name=hyper1]	
> \psSolid[object=surfaceparametree, linecolor=blue!40, base=Pi neg Pi -3 
> 3, fillcolor=red!50,
>   function=plane2,ngrid=.2 .2,action=none,name=firstplane]
> \psSolid[object=fusion,base=hyper1 firstplane,grid]
> % the intersection line
> \defFunction[algebraic]{inter1}(u,v){0}{(1+u^2)^0.5}{u}
> \defFunction[algebraic]{inter2}(u,v){0}{-(1+u^2)^0.5}{u}
> \psSolid[object=surfaceparametree,linecolor=blue,linewidth=3pt,base=-3 3 
> 0 Pi, ngrid=.15 .15,
> 		function=inter1,grid,action=draw]
> \psSolid[object=surfaceparametree,linecolor=blue,linewidth=3pt,base=1 3 
> 0 Pi, ngrid=.15 .15,
> 		function=inter2,grid,action=draw]	
> 
> \axesIIID(0,0,0)(5,5,5)
> \end{pspicture}
> 
> \end{document}
> 
> 
> \composeSolid is done by default with \end{pspicture}
> 
> Herbert
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Screenshot - 06.06.2012 - 07:50:29.png
> Type: image/png
> Size: 27353 bytes
> Desc: not available
> URL: <http://tug.org/pipermail/pstricks/attachments/20120616/d173bd52/attachment.png>
> 
> ------------------------------
> 
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> 
> 
> End of PSTricks Digest, Vol 113, Issue 14
> *****************************************




More information about the PSTricks mailing list