[pstricks] axesboxed with surfaceparametree in solides3d

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Sat Aug 21 14:11:50 CEST 2010


Ah!  Your reply inadvertently told me about another mistake I was making:  I read the "lt" as "It" (with the font I use, it is hard to tell the two apart---I should probably switch).  It also explained the last "dup". 
Thanks!

Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/

On Aug 21, 2010, at 2:41, Herbert Voss wrote:

> Am 20.08.2010 22:48, schrieb Zbigniew Nitecki:
>> I would like to do it so the top of the surface is horizontal---since the cross-section is not a circle,
>> r=1 will give me height 4 along the x-axis but height 1 along the y-axis.  Is there an equivalent to
>> It -5 It{pop -5}fi which cuts the surface off if the value is above a given one, instead of below it (in my case, 4)?  This problem was why I initially used surfaceparametree with a variant of polar coordinates.
> 
> 
> \documentclass{article}
> \usepackage{pst-solides3d}
> \pagestyle{empty}
> \begin{document}
> 
>   \begin{pspicture}(-4,-5)(6,8)
>   \psset{lightsrc=viewpoint,viewpoint=50 60 30 rtp2xyz,Decran=60}
>     \psSurface[ngrid=.2 .2,incolor=yellow,linewidth=0.5\pslinewidth,
>     r = 2,fillcolor=cyan,
>     axesboxed,
>     Zmin=0,Zmax=4](-1,-2)(1,2){
>     4 x dup mul mul y dup mul add
>     dup 4 gt {pop 4} if }
>   \end{pspicture}
> 
> \end{document}
> 
> dup => copy the z value
> z > 4 => compare it with 4
> pop 4 => delete the z value and put 4 on the stack
> 
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100821/77675b13/attachment.html>


More information about the PSTricks mailing list