[pstricks] two questions re pst3d-solides

Zbigniew Nitecki zbigniew.nitecki at tufts.edu
Sat Jul 24 16:44:56 CEST 2010


Yesterday, among my posts was one which was perhaps too complicated, 
involving trying to draw a surface and a curve on the surface.  
Since no one has responded, I have tried to
separate some of these issues, and at the moment have two simple (I hope) questions:

******************************************************************************************************
1. The following code produces the attached picture which follows;  if I uncomment the commented stuff
(except the first line, thereby trying to draw the same picture using fusion), 
I get the error message shown below the picture.

> % !TEX TS-program = latex
> \listfiles
> \documentclass[11pt]{article}
> \usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}
> \usepackage{pst-3d}
> \begin{document}
> 		\begin{pspicture}(-0.5,-2)(3,3)
> 				\psset{solidmemory}
> 				\psset{lightsrc=50 20 50, viewpoint=15 60 70 rtp2xyz,
> 					Decran=50}
> 				\psSurface[
> 				 fillcolor=gray,
> 				 incolor=green,
> 				 ngrid=0.1 0.1,
> 				 algebraic,
> 				 grid,% comment it out to see meaning of ngrid
> %				action=none,
> 				name=graphsurf,
> 				](-1,-1)(1,1){ (x^2-3*y^2)/2 }
> %%			\psSolid[
> %%				object=fusion,
> %%				action=draw**,
> %%				base=graphsurf,
> %%				]
> %%			\composeSolid
> 				
> 		\end{pspicture}
> \end{document}
++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Error: /typecheck in --get--
> Operand stack:
>    --nostringval--   -1   1   S1   -1   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--   2   --nostringval--   %repeat_continue   --nostringval--
> Dictionary stack:
>    --dict:1150/1684(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--   --dict:777/1012(L)--   --dict:175/300(L)--   --dict:38/200(L)--   --dict:183/200(L)--   --dict:777/1012(L)--   --dict:2/11(L)--   --dict:2/5(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 399769
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> ### FAILED to generate /tmp/altpdflatex.67030-1279982338/pst3d test 1.2.2.pdf ()


**********************************************************************************************************************************************

2. The code below is modelled as carefully as I can on the example in the pst3d-solides (English) documentation,
including the empty braces in the definition of the function (whose functioning I don't entirely understand).
Why does it crash?
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> % !TEX TS-program = latex
> \listfiles
> \documentclass[11pt]{article}
> \usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}
> \usepackage{pst-3d}
> %\usepackage{graphicsmacros}
> \begin{document}
> 		\begin{pspicture}(-0.5,-2)(3,3)
> 			\defFunction[algebraic]{curvey}(t){0.5-1.5*t^2}{}{}
> 			\psProjection[%
> 				object=courbe,
> 				range=-1.0 1.0,
> 				resolution=720,
> 				normal=1 0 0,
> 				linecolor=blue, 
> 				linewidth=1.5pt,
> 				function=curvey,
> 				]%
> 				
> 		\end{pspicture}
> \end{document}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Error: /undefined in l at pl@n
> Operand stack:
> 
> 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--
> Dictionary stack:
>    --dict:1150/1684(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--   --dict:792/1012(L)--   --dict:175/300(L)--   --dict:38/200(L)--   --dict:183/200(L)--   --dict:792/1012(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 400135
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> ### FAILED to generate /tmp/altpdflatex.67066-1279982543/pst3d test 1.2.1.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/20100724/8deb1ab5/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pst3d test 1.2.2.pdf
Type: application/pdf
Size: 17149 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20100724/8deb1ab5/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100724/8deb1ab5/attachment-0003.html>


More information about the PSTricks mailing list