[pstricks] multido in pst3d-solides

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Wed Jul 28 22:24:17 CEST 2010


In the code below, I have first drawn a hemisphere and several circles (intersections with different parallel planes)
then tried to use multido to put radial vectors at evenly spaced points on the circles.  I have written code for one such
circle.  When the \psSolid[object=vecteur... is not present, this works fine to put dots at the points.
but the inclusion of the vecteur crashes.  Am I making a syntax error in putting in the calculation?
###################################################
> % !TEX TS-program = latex
> \listfiles
> \documentclass[11pt]{article}
> \usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}
> \usepackage{pst-3d}
> \begin{document}
> \begin{center}
> 		\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]},
> 					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}
> \end{center}
> \end{document}
####################################################
> ### This is /usr/texbin/simpdftex, Version 20070809
> ### /usr/texbin/latex pst3d test 1.3.6.tex
> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
> entering extended mode
> (./pst3d test 1.3.6.tex
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
> yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
> abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
> h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
> greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
> rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
> lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
> ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2009/texmf-dist/tex/latex/base/size11.clo))
> (/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-solides3d/pst-solides3d.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/pstricks/pstricks.sty
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pstricks.tex
> `PSTricks' v1.29  <2009/05/19> (tvz)
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pstricks.con))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/xcolor/xcolor.sty
> (/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/color.cfg)
> (/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/dvips.def)))
> (/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-solides3d/pst-solides3d.tex
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pst-node.tex
>  v1.01, 2008/11/26)
> (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
> (/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty
> (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex
> (/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex))))
> (/usr/local/texlive/2009/texmf-dist/tex/generic/multido/multido.tex
>  v1.41, 2004/05/18 <tvz>) `PSTSOLIDESIIID' v4.16, 2009/08/11))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/pst-3dplot/pst-3dplot.sty
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pst-3dplot/pst-3dplot.tex
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pst-plot.tex
>  v1.04, 2009/06/08)
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pst-3d/pst-3d.tex
> `PST-3d' v1.00, 2005/09/03 (tvz))
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks-add/pst-fp.tex
> `pst-fp' v0.02, 2009/04/02 (hv))
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pst-math/pst-math.tex
> `pst-math' v0.23 , (CJ,hv)) `pstricks-add' v3.35, 2009/10/12 (dr,hv))
> (/usr/local/texlive/2009/texmf-dist/tex/generic/multido/multido.tex
>  v1.41, 2004/05/18 <tvz>) `PST-3dplot' v1.86, 2009/10/06 (HV,DL)))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/pst-math/pst-math.sty
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pst-math/pst-math.tex
> `pst-math' v0.23 , (CJ,hv)))
> (/usr/local/texlive/2009/texmf-dist/tex/latex/pstricks-add/pstricks-add.sty
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex))
>  (/usr/local/texlive/2009/texmf-dist/tex/latex/pst-3d/pst-3d.sty
> (/usr/local/texlive/2009/texmf-dist/tex/generic/pst-3d/pst-3d.tex
> `PST-3d' v1.00, 2005/09/03 (tvz))) (./pst3d test 1.3.6.aux) [1]
> (./pst3d test 1.3.6.aux)
> 
>  *File List*
>  article.cls    2007/10/19 v1.4h Standard LaTeX document class
>   size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
> pst-solides3d.sty    2009/07/25 package wrapper for pst-solides3d
> pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
> pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
>   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
>    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
>    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
> pst-solides3d.tex    2009/08/11 v4.16 `PST-solides3D'
> pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
>  solides.pro    2008/10/30 v. 4.13, PostScript prologue file
> pst-3dplot.sty    2009/07/28 package wrapper for pst-3dplot.tex (hv)
> pst-3dplot.tex    2009/10/06 v1.86 `PST-3dplot' (hv)
> pst-math.sty    2009/01/20 package wrapper for PSTricks pst-math.tex
> pstricks-add.sty    2009/03/17 v. 0.13 package wrapper for pstricks-add.tex (hv
> )
> pstricks-add.tex    2009/10/06 v0.23 `PSTricks-add' (hv)
>   pst-3d.sty    2005/09/02 package wrapper for pst-3d.tex (hv)
>   pst-3d.tex    2005/09/03 v1.00 `PST-3d' (tvz)
>  ***********
> 
>  )
> Output written on "pst3d test 1.3.6.dvi" (1 page, 198900 bytes).
> Transcript written on "pst3d test 1.3.6.log".
> ### /usr/texbin/dvips -R -Poutline  -o /tmp/altpdflatex.87016-1280348331/pst3d test 1.3.6.ps pst3d test 1.3.6.dvi
> This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com)
> ' TeX output 2010.07.28:1618' -> /tmp/altpdflatex.87016-1280348331/pst3d test 1.3.6.ps
> </usr/local/texlive/2009/texmf/dvips/base/tex.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pstricks/pstricks.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pstricks/pst-algparser.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pstricks/pst-dots.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pstricks/pst-node.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pst-solides3d/solides.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pst-math/pst-math.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pstricks-add/pstricks-add.pro>
> </usr/local/texlive/2009/texmf-dist/dvips/pst-3dplot/pst-3dplot.pro>
> </usr/local/texlive/2009/texmf/dvips/base/texps.pro>
> </usr/local/texlive/2009/texmf/dvips/base/special.pro>
> </usr/local/texlive/2009/texmf/dvips/base/color.pro>. 
> </usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
> [1] 
> ### ps2pdf13 /tmp/altpdflatex.87016-1280348331/pst3d test 1.3.6.ps /tmp/altpdflatex.87016-1280348331/pst3d test 1.3.6.pdf
> 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 409057
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> ### FAILED to generate /tmp/altpdflatex.87016-1280348331/pst3d test 1.3.6.pdf ()
##############################################################
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/20100728/9494ca70/attachment-0001.html>


More information about the PSTricks mailing list