[pstricks] trouble with postscript stack
Manfred Braun
manfred.braun at uni-due.de
Fri Oct 12 14:01:36 CEST 2012
Hi Jon,
apparently it is the space in (u, v) that makes the trouble -- I don't know why. With (u,v) both versions work.
Manfred
On 12.10.2012, at 13:39, Jon Joseph wrote:
> In the following code I use two definitions of the parametric function. The only thing I change is the order of the constant multiplier. One works and one generates nonsense. Is this a bug or something I don't understand about the ps stack? Thanks. Jon
>
>
> \documentclass[12pt]{article}
> \usepackage[letterpaper,asymmetric=true, total={18cm,22cm},
> top=3cm, bindingoffset=1cm]{geometry}
> \usepackage[svgnames]{pstricks}
> \usepackage{pst-plot,pst-infixplot}
> \usepackage{pst-eucl}
> \usepackage{pst-fun, pst-coil}
> \usepackage{pst-solides3d}
>
>
>
> \begin{document}
>
> \begin{pspicture}(-5,5)(5,5)
> \psset{viewpoint=20 5 15, Decran=25, lightsrc=viewpoint}
>
> \defFunction{cone}(u,v) {v Cos 3 mul }{v Sin 2 mul }{u}% <--------------------- Works
> %\defFunction{cone}(u, v){3 v Cos mul}{2 v Sin mul}{u}% <------------------------ Doesn't work
>
> \psSolid[object=surfaceparametree,
> base=-2 2 0 2 pi mul,
> fillcolor=yellow!50,
> incolor=green!50,
> function=cone,
> linewidth=0.5\pslinewidth,
> ngrid=25 40]
> \end{pspicture}
>
> \end{document}
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
More information about the PSTricks
mailing list