[pstricks] pst3d-solides: what can possibly be wrong with this code?
Zbigniew Nitecki
zbigniew.nitecki at tufts.edu
Wed Jul 28 15:06:27 CEST 2010
Following the directions on p. 107 of the pst3d-solides docs, the following code
##############################################################
% !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)
\defFunction{gFunct}(u,v){v cos u mul}{v sin u mul}{1 u dup mul sub sqrt}
\psSolid[object=surfaceparametree,
% range=[0 0.9 0 360],
base=0 0.9 0 360,
function=gFunct,
fillcolor=blue!10,
]
\end{pspicture}
\end{center}
\end{document}
##############################################################
leads to a crash (see below). What can be causing it?
Notes:
1. The text says the range of the function in surfaceparametree is determined by range=[umin umax vmin vmax]
but in the examples, it appears to be given by base=umin umax vmin vmax. I have one commented, the other
applied. The crash occurs in either case.
2. This is supposed to draw the upper hemishphere of radius 1, but I have let u go only to 0.9 (instead of 1)
to make sure the problem is not rounding when subtracting and therefore trying square root of a negative
(when computing z(u,v)).
##############################################################
### 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, 5344 bytes).
Transcript written on "pst3d test 1.3.6.log".
### /usr/texbin/dvips -R -Poutline -o /tmp/altpdflatex.83322-1280321937/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:0858' -> /tmp/altpdflatex.83322-1280321937/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.83322-1280321937/pst3d test 1.3.6.ps /tmp/altpdflatex.83322-1280321937/pst3d test 1.3.6.pdf
Error: /undefinedresult in --div--
Operand stack:
dx 0.9 0
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 --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)-- --dict:773/1012(L)-- --dict:175/300(L)-- --dict:38/200(L)-- --dict:183/200(L)-- --dict:773/1012(L)-- --dict:9/10(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 399731
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
### FAILED to generate /tmp/altpdflatex.83322-1280321937/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/96571469/attachment-0001.html>
More information about the PSTricks
mailing list