[pstricks] multido

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Mon Nov 24 15:48:43 CET 2008


I hadn't realized that the back-and-forth about clipping concerned my  
problem, until just now.
After fixing a few minor errors in Herbert's example (eg, the first  
two points in the \psline defining the first clip are identical) I got  
it working perfectly.

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 Nov 22, 2008, at 14:59, Herbert Voss wrote:

> Michael Sharpe schrieb:
>> You can clip in each ThreeD plane to get something that may work. You
>> have to be very careful to not introduce glue which can mess up the
>> spacing----that's why all the % within the \multido.
>>
>> \documentclass[dvips]{article}
>> \usepackage{pst-3dplot}
>> \usepackage{pst-all}
>> \usepackage{fp}
>
> there is no need for the fp package
>
> \documentclass[dvips]{article}
> \usepackage{pst-3dplot}
> \usepackage{multido}
> \begin{document}
> \psset{unit=1in}
> \begin{pspicture}(-1.5,-1.5)(1.5,1.5)
> \pstThreeDCoor[xMin=-2,xMax=2,yMin=-2,yMax=2,zMin=-2,zMax=2]
> \multido{\nA=-1+.1}{21}{%
> \begin{psclip}{%
>  \pstThreeDLine[linestyle=none]%
>    (\nA, 1 \nA\space dup mul sub sqrt neg,-1)%
>    (\nA, 1 \nA\space dup mul sub sqrt neg,-1)%
>    (\nA, 1 \nA\space dup mul sub sqrt,1)%
>    (\nA, 1 \nA\space dup mul sub sqrt neg,1)%
>    (\nA, 1 \nA\space dup mul sub sqrt neg,-1)}%
>  \parametricplotThreeD[linecolor=red](-1,1)%
>    {\nA\space t \nA\space dup mul t t  mul sub}%
> \end{psclip}%
> %slices with y fixed---interchange x, y
> \begin{psclip}{%
>  \pstThreeDLine[linestyle=none]%
>    (1 \nA\space dup mul sub sqrt neg,\nA,1)%
>    (1 \nA\space dup mul sub sqrt,\nA,-1)%
>    (1 \nA\space dup mul sub sqrt,\nA,1)%
>    (1 \nA\space dup mul sub sqrt neg,\nA,1)%
>    (1 \nA\space dup mul sub sqrt neg,\nA,-1)}
> \parametricplotThreeD[linecolor=blue](-1,1)%
>  {t \nA\space t t mul  \nA\space dup mul sub}%
> \end{psclip}%
> }
> \end{pspicture}
> \end{document}
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20081124/1510d59b/attachment.html 


More information about the PSTricks mailing list