<font color='black' size='2' face='Arial, Helvetica, sans-serif'><font><font color="black" face="Arial, Helvetica, sans-serif" size="2">Leon Free wrote :</font></font><font size="2"><font face="Arial, Helvetica, sans-serif"><br>
<br>
</font></font><tt><font color="black"><font size="2"><font face="Arial, Helvetica, sans-serif">></font></font></font>i'd like to use the projection+intersection facilities included in
pst-solides3d. i started plotting a </tt><font size="2"><font face="Arial, Helvetica, sans-serif">></font></font><tt>3d function z=f(x,y) (see attached
tex source).

while \psplotThreeD from pst-3dplot works fine, the </tt><font size="2"><font face="Arial, Helvetica, sans-serif">></font></font><tt>\psSurface macro
from pst-solides3d fails.</tt><font size="2"><font face="Arial, Helvetica, sans-serif"><br>
<br>
</font></font><font size="2"><font face="Arial, Helvetica, sans-serif"><br>
</font></font>The cause of the error values are intervals \psSurface<br>
<br>
\psSurface[options](xmin,ymin)(xmax,ymax){equation of the surface z=f(x,y)}<br>
<br>
Try this:<br>
<br>
\begin{pspicture}(-4,-2)(6,6)<br>
\axesIIID[linecolor=gray](-3,-2,-0.5)(2.5,1.5,2.5)<br>
\psSurface[grid,ngrid=.1 .1,fillcolor=yellow!50]%<br>
(-2,-1)(1,1)%<br>
{1 x add 2 exp y 2 exp 2 mul add x y mul sub 0.4 mul 0.2 add}<br>
\end{pspicture}<font color="black" face="Arial, Helvetica, sans-serif" size="2"><br>
<br>
Manuel<br>


<div> <br>

</div>



<div> <br>

</div>



<div style="clear:both"></div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----E-mail d'origine-----<br>

De : Leon Free <leon.free@free.fr><br>

A : Graphics with PSTricks <pstricks@tug.org><br>

Envoyé le : Mardi, 31 Mai 2011 8:08<br>

Sujet : [pstricks] pst-solides3d psSurface<br>

<br>









<div id="AOLMsgPart_0_0f2a4a47-66af-46b6-98f0-42c2cfce7ef7" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>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


</tt></pre>
</div>

 <!-- end of AOLMsgPart_0_0f2a4a47-66af-46b6-98f0-42c2cfce7ef7 -->



<div id="AOLMsgPart_4_0f2a4a47-66af-46b6-98f0-42c2cfce7ef7" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>_______________________________________________
PSTricks mailing list
<a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a>
archive: <a href="http://www.tug.org/pipermail/pstricks/" target="_blank">http://www.tug.org/pipermail/pstricks/</a>
</tt></pre>
</div>

 <!-- end of AOLMsgPart_4_0f2a4a47-66af-46b6-98f0-42c2cfce7ef7 -->



</div>

</font></font>