[pstricks] Re : pst-solides3d psSurface
Manuel Luque
mluque5130 at aol.com
Tue May 31 08:51:59 CEST 2011
Leon Free wrote :
>i'd like to use the projection+intersection facilities included inpst-solides3d. i started plotting a >3d function z=f(x,y) (see attachedtex source).while \psplotThreeD from pst-3dplot works fine, the >\psSurface macrofrom pst-solides3d fails.
The cause of the error values are intervals \psSurface
\psSurface[options](xmin,ymin)(xmax,ymax){equation of the surface z=f(x,y)}
Try this:
\begin{pspicture}(-4,-2)(6,6)
\axesIIID[linecolor=gray](-3,-2,-0.5)(2.5,1.5,2.5)
\psSurface[grid,ngrid=.1 .1,fillcolor=yellow!50]%
(-2,-1)(1,1)%
{1 x add 2 exp y 2 exp 2 mul add x y mul sub 0.4 mul 0.2 add}
\end{pspicture}
Manuel
-----E-mail d'origine-----
De : Leon Free <leon.free at free.fr>
A : Graphics with PSTricks <pstricks at tug.org>
Envoyé le : Mardi, 31 Mai 2011 8:08
Sujet : [pstricks] pst-solides3d psSurface
hi
i'd like to use the projection+intersection facilities included in
pst-solides3d. i started plotting a 3d function z=f(x,y) (see attached
tex source).
while \psplotThreeD from pst-3dplot works fine, the \psSurface macro
from pst-solides3d fails.
latex+dvips does not complain but when trying to view the postscript,
ghostscript says:
Error: /undefinedresult in --div--
Operand stack:
--nostringval-- dy 0 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1878 1 3
%oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop
1755 1 3 %oparray_pop --nostringval-- %errorexec_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
--dict:745/1012(L)-- --dict:176/300(L)-- --dict:38/200(L)--
--dict:197/200(L)-- --dict:745/1012(L)-- --dict:8/10(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
the ps2pdf utility issues the same message with the further information
that: Current file position is 455474
all i can guess is that a ./0 division occurs at some point. but i cant
debug it further. does anybody know what's wrong ?
lf
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110531/acd034ec/attachment.html>
More information about the PSTricks
mailing list