[pstricks] still confused by fusion
Zbigniew Nitecki
zbigniew.nitecki at tufts.edu
Sun Jul 25 16:36:54 CEST 2010
I've had a lot of help so far with this particular mini-project,
and have succeeded in creating the ingredients for the figure I want.
But the fusion part still eludes me. Can anyone explain the behavior noted below?
*******************************************************************************
First, the following code, in which each element is separate and has an "action=draw**" command,
produces the picture shown after the code:
> % !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=draw**,
> % action=none,
> % name=graphsurf,
> ](-1,-1.5)(1,1.5){ (x^2-3*y^2)/2 }
> %
> \defFunction[algebraic]{curvey}(t){t}{1} {0.5*t^2-1.5}
> \psSolid[%
> object=courbe,
> r=0.01,
> range=-1.0 1.0,
> resolution=720,
> linecolor=blue,
> linewidth=1pt,
> function=curvey,
> action=draw**,
> % action=none,
> % name=curvey,
> ]%
> \defFunction[algebraic]{curvex}(t){0.5}{t} {0.125-1.5*t^2}
> \psSolid[%
> object=courbe,
> r=0.01,
> range=-1.5 1.5,
> resolution=720,
> linecolor=lightgray,
> linewidth=1pt,
> function=curvex,
> action=draw**,
> % action=none,
> % name=curvex,
> ]%
> % \psSolid[
> % object=fusion,
> % action=draw**,
> % base=graphsurf curvey curvex,
> % ]
> % \composeSolid
>
> \end{pspicture}
> \end{document}
*********************************************************************************************************
However, when I comment out all the "action=draw**" commands and replace them with "action=none, name=<>"
and also uncomment the solidmemory at the start and the \psSolid[object=fusion,... as well as \compose Solid,
as shown below, I get the error message that follows the code:
% !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=draw**,
action=none,
name=graphsurf,
](-1,-1.5)(1,1.5){ (x^2-3*y^2)/2 }
%
\defFunction[algebraic]{curvey}(t){t}{1} {0.5*t^2-1.5}
\psSolid[%
object=courbe,
r=0.01,
range=-1.0 1.0,
resolution=720,
linecolor=blue,
linewidth=1pt,
function=curvey,
% action=draw**,
action=none,
name=curvey,
]%
\defFunction[algebraic]{curvex}(t){0.5}{t} {0.125-1.5*t^2}
\psSolid[%
object=courbe,
r=0.01,
range=-1.5 1.5,
resolution=720,
linecolor=lightgray,
linewidth=1pt,
function=curvex,
% action=draw**,
action=none,
name=curvex,
]%
\psSolid[
object=fusion,
action=draw**,
base=graphsurf curvey curvex,
]
\composeSolid
\end{pspicture}
\end{document}
> Error: /typecheck in --get--
> Operand stack:
> --nostringval-- -1 1 S1 -1.5 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:779/1012(L)-- --dict:175/300(L)-- --dict:38/200(L)-- --dict:184/200(L)-- --dict:779/1012(L)-- --dict:2/11(L)-- --dict:2/5(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 409582
> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
> ### FAILED to generate /tmp/altpdflatex.69124-1280068503/pst3d test 1.3.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/20100725/ef9dc4fc/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pst3d test 1.3.pdf
Type: application/pdf
Size: 64835 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20100725/ef9dc4fc/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100725/ef9dc4fc/attachment-0003.html>
More information about the PSTricks
mailing list