[pstricks] pst-paraboloid problem

Bruce Burlton bruceburlton at sympatico.ca
Fri Feb 19 13:48:45 CET 2010


   > With the recent update of several of the pstricks-related packages, I too experienced the problems with pst-3dplot discussed in Vol 85, issues 9 and 10 (and perhaps others).  As suggested by Herbert, I updated my copy of the 3dplot files, and as expected, the problem went away.  However an problem arose with pstParaboloid.  Basically the paraboloid is not rendered.  When I do my standard latex->dvips->pspdf, I get a compiler error in the final step.  See minimal example below.  The first "image" is cut from my document.  When the line containing pstParaboloid is active, the compilation fails.  The second "image" comes from the latest pst-3dplot documentation.

    > %  \pstThreeDPut(1.5,0,0){\pstParaboloid[RotY=-90,SegmentColor={[cmyk]{0,0,0,1}},showInside=false]{.5}{.1}}%

    Bruce,
    what is the reason for \pstThreeDPut instead of using the argument
    for \psParabolid[...](1.5,0,0){.5}{.1} ??

    Herbert

    A good question.  I had a reason for writting the code this way, but cannot remember.
    Regardless, I cannot compile either part of the simple example.  When the result of pspdf is examined with either Ghostscript or acrobat, the paraboloid is missing.  Ghostscript produces the following message:


    Unknown in Prolog section at line 1756:
      %% x -> e^x
    Unknown in Prolog section at line 1758:
      %%
    Unknown in Prolog section at line 1759:
      %% factorial function

- Ignored:
    
    Unknown in Prolog section at line 1760:
      %% n -> n!
    
    Unknown in Prolog section at line 1771:
      %% PostScript prologue for pstricks.tex.
    
    Unknown in Prolog section at line 1772:
      %% Version 2.02,  2009/06/16
    
    Unknown in Prolog section at line 1773:
      %%
    
    Unknown in Prolog section at line 1774:
      %% For distribution, see pstricks.tex.
    
    Unknown in Prolog section at line 1775:
      %%
    
    Unknown in Prolog section at line 1776:
      %% Timothy Van Zandt <tvz at Princeton.EDU>
    
    Unknown in Prolog section at line 1777:
      %%
    
    Unknown in Prolog section at line 1778:
      %% This program can be redistributed and/or modified under the terms
    
    Unknown in Prolog section at line 1779:
      %% of the LaTeX Project Public License Distributed from CTAN archives
    
    Unknown in Prolog section at line 1780:
      %% in directory macros/latex/base/lppl.txt.
    
    Unknown in Prolog section at line 1781:
      %%
    
    Unknown in Prolog section at line 1782:
      %% Modified by Etienne Riga  - Dec. 16, 1999
    
    Unknown in Prolog section at line 1783:
      %% Modified by Etienne Riga  - 2005/01/01 (er)
    
    Unknown in Prolog section at line 1784:
      %% to add /Diamond, /SolidDiamond and /BoldDiamond
    
    Unknown in Prolog section at line 1785:
      %% Modified by Herbert Voss (hv) - 2008/04/17 
    
    Unknown in Prolog section at line 1808:
      %%%    
    
    Unknown in Prolog section at line 1833:
      %%%  
    
    Unknown in Prolog section at line 1916:
      %%%
    
    Unknown in Prolog section at line 1941:
      %% end
    
    Unknown in Prolog section at line 1946:
      %%
    
    Unknown in Prolog section at line 1947:
      %% PostScript prologue for pst-node.tex.
    
    Unknown in Prolog section at line 1948:
      %% Version 1.10, 2010/01/22.
    
    Unknown in Prolog section at line 1949:
      %%
    
    Unknown in Prolog section at line 1950:
      %% This program can be redistributed and/or modified under the terms
    
    Unknown in Prolog section at line 1951:
      %% of the LaTeX Project Public License Distributed from CTAN archives
    
    Unknown in Prolog section at line 1952:
      %% in directory macros/latex/base/lppl.txt.
    
    Unknown in Prolog section at line 2521:
      %% $Id: pst-3dplot.pro 236 2009-12-31 08:59:43Z herbert $
    
    
    Unknown in Prolog section at line 2522:
      %%
    
    
    Unknown in Prolog section at line 2523:
      %% This is file `pst-3dplot.pro',
    
    
    Unknown in Prolog section at line 2524:
      %%
    
    
    Unknown in Prolog section at line 2525:
      %% IMPORTANT NOTICE:
    
    
    Unknown in Prolog section at line 2526:
      %%
    
    
    Unknown in Prolog section at line 2527:
      %% Package `pst-3dplot.tex'
    
    
    Unknown in Prolog section at line 2528:
      %%
    
    
    Unknown in Prolog section at line 2529:
      %% Herbert Voss <voss _at_ PSTricks.de>
    
    
    Unknown in Prolog section at line 2530:
      %%
    
    
    Unknown in Prolog section at line 2531:
      %% This program can be redistributed and/or modified under the terms
    
    
    Unknown in Prolog section at line 2532:
      %% of the LaTeX Project Public License Distributed from CTAN archives
    
    
    Unknown in Prolog section at line 2533:
      %% in directory macros/latex/base/lppl.txt.
    
    
    Unknown in Prolog section at line 2534:
      %%
    
    
    Unknown in Prolog section at line 2535:
      %% DESCRIPTION:
    
    
    Unknown in Prolog section at line 2536:
      %%   `pst-3dplot' is a PSTricks package to draw 3d curves and graphical objects
    
    
    Unknown in Prolog section at line 2537:
      %%
    
    
    Unknown in Prolog section at line 2538:
      %%
    
    
    Unknown in Prolog section at line 2539:
      %% version 0.30 / 2010-01-01  Herbert Voss <voss _at_ PSTricks.de>
    
    
    Unknown in Prolog section at line 2540:
      %% with contributions of Darrell Lamm <darrell.lamm _at_ gtri.gatech.edu<
    
    
    Unknown in Prolog section at line 2541:
      %%            
    
    
    Unknown in Prolog section at line 3451:
      %%%%%% R0 G0 B0 R1 G1 B1 NumLines MidPoint Angle GradientFill
    
    Unknown in Prolog section at line 3798:
      %%Title: CMR12
    
    Unknown in Prolog section at line 3800:
      %%CreationDate: Mon Jul 13 16:17:00 2009
    
    Unknown in Prolog section at line 3801:
      %%Creator: David M. Jones
    
    Unknown in Prolog section at line 3807:
      %%EndComments
    
    Unknown in Prolog section at line 4185:
      %%Title: CMMI12
    
    Unknown in Prolog section at line 4187:
      %%CreationDate: Mon Jul 13 16:17:00 2009
    
    Unknown in Prolog section at line 4188:
      %%Creator: David M. Jones
    
    Unknown in Prolog section at line 4194:
      %%EndComments
    
    Failed to load C:\Program Files\gs\gs8.53\bin\gsdll32.dll, error 126
    The specified module could not be found.
    
    
    
    Failed to load C:\Program Files\Ghostgum\gsview\gsdll32.dll, error 126
    The specified module could not be found.
    
    
    
    GPL Ghostscript 8.63 (2008-08-01)
    Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.
    This software comes with NO WARRANTY: see the file PUBLIC for details.
    Displaying DSC file C:/Documents and Settings/Bruce/My Documents/Latex/temp/test20-pics.ps
    Displaying page 1
    Error: /undefined in tx at 3Ddict
    Operand stack:
       0   0.612372   0.612372   0.5   0
    Execution stack:
       %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --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--
    Dictionary stack:
       --dict:1158/1684(ro)(G)--   --dict:0/20(G)--   --dict:84/200(L)--   --dict:176/300(L)--   --dict:37/200(L)--   --dict:120/200(L)--
    Current allocation mode is local
    Last OS error: No such file or directory
    
    --- Begin offending input ---
    l 45.  sin add 30.
     cos mul 3 1 roll } def 0 viewpoint 0 tx at 3Ddict begin SetMatrixThreeD
    end viewpoint tx at 3DPlotDict begin  /vZ ED /vY ED /vX ED  /RotX 0. 
    def /RotY -90.  def /RotZ 0.  def /RotAngle 0.  def /xRotVec 1.  def
    /yRotVec 0.  def /zRotVec 0.  def /dxUnit 1 def /dyUnit 1.0 def /dzUnit
    1.0 def /RotSequence (xyz ) def /RotSet (set ) def /Alpha 45.  def
    /Beta 30.  def /Sin1 Beta sin def /Sin2 Alpha sin def /Cos1 Beta cos
    def /Cos2 Alpha cos def /Cos1Sin2 Cos1 Sin2 mul def /Sin1Sin2 Sin1
    Sin2 mul def /Cos1Cos2 Cos1 Cos2 mul def /Sin1Cos2 Sin1 Cos2 mul def
    /showgrid true def currentdict tx at 3DPlotDict ne dup {tx at 3DPlotDict
    begin} if /eulerRotation false def RotSet (set ) eq currentdict /MnewTOold
    known not or {/PROCMXYZ /SetMxyz def /PROCMQUATERNION /SetMQuaternion
    def} {RotSet (concat ) eq {/PROCMXYZ /ConcatMxyz def /PROCMQUATERNION
    /ConcatMQuaternion def} {/PROCMXYZ () def /PROCMQUATERNION () def}
    ifelse } ifelse RotSequence (quaternion ) ne {PROCMXYZ} {PROCMQUATERNION}
    ifelse cvx exec /RotSet (keep ) 
    --- End offending input ---
    file offset = 183027
    g
    
    

- Done.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100219/076c5338/attachment.html>


More information about the PSTricks mailing list