[pstricks] vecteur in multido
Zbigniew Nitecki
zbigniew.nitecki at tufts.edu
Fri Jul 30 16:13:13 CEST 2010
The following code compiles fine:
###############################
> \begin{pspicture}(-0.5,-3.5)(3,3.5)
> \psset{lightsrc=50 20 50, viewpoint=15 60 30 rtp2xyz,Decran=50}
>
>
> \defFunction{gFunct}(u,v){v cos u mul}{v sin u mul}{1 u dup mul sub sqrt}
> \psSolid[object=surfaceparametree,
> base=0 1 0 360,
> function=gFunct,
> fillcolor=blue!30,
> ngrid=50,
> grid,
> intersectiontype=0,
> intersectionplan={[0 1 1 -1] [0 1 1 -1.2] [0 1 1 -1.3] [0 1 1 -1.4]},
> intersectionlinewidth=2 2 2,
> intersectioncolor=(rouge) (rouge) (rouge),
> action=draw**,
> ]
> \psPoint [](0,0.7,0.7){P}
> \psdots[ dotsize=0.3,linecolor=red](P)
>
> \multido{\rt=0.1+10}{36}{%
> \psPoint(
> 0.529 \rt\space sin mul,
> 0.6 0.374 \rt\space cos mul sub,
> 0.6 0.374 \rt\space cos mul add)%
> {P}
> %
> \psdots[dotsize=0.1](P)
> %
> % \psSolid[object=vecteur,
> % linecolor=red,
> % definition={[.05 0.3]},
> % args=%
> % 0.529 \rt\space sin mul %
> % 0.6 0.374 \rt\space cos mul sub %
> % 0.6 0.374 \rt\space cos mul add),
> % %
> % action=draw**,
> % ](P)
> }
> \end{pspicture}
##############################################################
but when I uncomment the \psSolid[object=vecteur,... (which is inside the multido loop)
I get an error message:
> Error: /syntaxerror in -file-
> Operand stack:
> args
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
> Dictionary stack:
> --dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)-- --dict:769/1012(L)-- --dict:175/300(L)-- --dict:38/200(L)-- --dict:183/200(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 409069
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> ### FAILED to generate /tmp/altpdflatex.2230-1280498478/pst3d test 1.3.6.pdf ()
I am following the format for args in the example on p. 63 of the (English) pst3d-solides documentation,
so I don't see what I have done wrong.
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100730/576f8e4a/attachment-0001.html>
More information about the PSTricks
mailing list