[pstricks] Inconsistency in pst-solides3d?

Jon Joseph josco.jon at gmail.com
Wed Jan 6 03:18:04 CET 2010


The following two code fragment contain the same elements in different order. In the first one I try render the cylinder before the parametric surface and in the second fragment I reverse the order. The first does not compile while the second works correctly. Also, if I exchange "object=cylindre" for "object=cylindrecreux" then either order works correctly. Ideas? Jon

%
% This fails to compile. cylindre is second.
%
\begin{pspicture}[showgrid=false](0,-2)(2,2)
	\psset{lightsrc=30 -40 20,viewpoint=30 -40 20,
		Decran=100,linewidth=0.5\pslinewidth, ngrid=25 25}
	\defFunction{cosshell}(u,v)%
		{u}{u sqrt v Cos mul}{u sqrt v Sin mul}%
	\psSolid[object=surfaceparametree,
		base=0 4 0 2 pi mul,
		action=draw*,
		linecolor=cyan!90,
		fillcolor=cyan!50,
		function=cosshell,
		opacity=.7](0,0,0)
	\psSolid[object=cylindre,%
		action=draw**,
		h=.1, r=3.5 sqrt,
		incolor=red,
		fillcolor=red,
		RotY=90](3.5,0,0)
	\axesIIID(0,0,0)(5,5,3)
\end{pspicture}

%
%This works correctly. Cylindre is first.
%
\begin{pspicture}[showgrid=false](0,-2)(2,2)
	\psset{lightsrc=30 -40 20,viewpoint=30 -40 20,
		Decran=100,linewidth=0.5\pslinewidth, ngrid=25 25}
	\defFunction{cosshell}(u,v)%
		{u}{u sqrt v Cos mul}{u sqrt v Sin mul}%
	\psSolid[object=cylindre,%
		action=draw**,
		h=.1, r=3.5 sqrt,
		incolor=red,
		fillcolor=red,
		RotY=90](3.5,0,0)
	\psSolid[object=surfaceparametree,
		base=0 4 0 2 pi mul,
		action=draw*,
		linecolor=cyan!90,
		fillcolor=cyan!50,
		function=cosshell,
		opacity=.7](0,0,0)
	\axesIIID(0,0,0)(5,5,3)
\end{pspicture}


Console from a failed build. 

1] [2] (./mytest2.aux) )
(see the transcript file for additional information)
Output written on mytest2.dvi (2 pages, 202492 bytes).
Transcript written on mytest2.log.
### /usr/texbin/dvips -R -Poutline  -o /tmp/altpdflatex.636-1262743627/mytest2.ps mytest2.dvi
This is dvips(k) 5.97 Copyright 2008 Radical Eye Software (www.radicaleye.com)
' TeX output 2010.01.05:2007' -> /tmp/altpdflatex.636-1262743627/mytest2.ps
</usr/local/texlive/2008/texmf/dvips/base/tex.pro>
</usr/local/texlive/2008/texmf-dist/dvips/pstricks/pstricks.pro>
</usr/local/texlive/2008/texmf-dist/dvips/pstricks/pst-algparser.pro>
</usr/local/texlive/2008/texmf-dist/dvips/pstricks/pst-dots.pro>
</usr/local/texlive/2008/texmf-dist/dvips/pstricks/pst-node.pro>
</usr/local/texlive/2008/texmf-dist/dvips/pst-solides3d/solides.pro>
</usr/local/texlive/2008/texmf-dist/dvips/pstricks-add/pstricks-add.pro>
</usr/local/texlive/2008/texmf/dvips/base/texps.pro>
</usr/local/texlive/2008/texmf/dvips/base/special.pro>
</usr/local/texlive/2008/texmf/dvips/base/color.pro>. 
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb>
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmbx10.pfb>
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmbx12.pfb>
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmmi10.pfb>[1] [2] 
### ps2pdf14 /tmp/altpdflatex.636-1262743627/mytest2.ps /tmp/altpdflatex.636-1262743627/mytest2.pdf
Error: /typecheck in --sqrt--
Operand stack:
   S   --nostringval--   --nostringval--   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1905   1   3   %oparray_pop   1904   1   3   %oparray_pop   1888   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   1   1   25   --nostringval--   %for_pos_int_continue   1   1   25   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1149/1684(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--   --dict:740/1012(L)--   --dict:178/300(L)--   --dict:38/200(L)--   --dict:182/200(L)--   --dict:740/1012(L)--   --dict:12/12(L)--   --dict:2/3(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 567335
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
### FAILED to generate /tmp/altpdflatex.636-1262743627/mytest2.pdf ()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100105/14eb0b4d/attachment.html>


More information about the PSTricks mailing list