<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for the suggestion; &nbsp;I'll try it later.<div>But in trying my own workaround I simply got rid of the axesbox,</div><div>since I don't rally care about it for this particular picture. &nbsp;</div><div><br></div><div>What I want is to draw the surface z=(x^2-3*y^2)/2</div><div>together with two curves, obtained by intersecting the surface with</div><div>planes parallel to the coordinate planes xz and yz through the point</div><div>(1, 1/2, 1/8); &nbsp;these have equations</div><div><br></div><div>z=(x^2-3/4)/2=0.5*x^2-0.375,</div><div>y=0.5</div><div><br></div><div>and</div><div><br></div><div>z=(1-3*y^2)/2=0.5-1.5*y^2</div><div>x=1.</div><div><br></div><div>I liked your version of the surface, so I used it.</div><div>Initially, since I am more familiar with it, I tried to then draw the curves using \parametricplotThreeD,</div><div>but there seems to be some slight difference between the coordinate systems for pst-3dplot and</div><div>pst3d-solides, so when I discovered Section 10.11 of the pst3d-solides guide (English), I decided to</div><div>try to use the pst3d-solides routines for everything, in particular to fuse objects and take advantage</div><div>of the hidden line feature of pst3d-solides. &nbsp;</div><div><br></div><div>I am not entirely clear on the structure of \defFunction, in particular the trailing empty parentheses</div><div>when using it for courbe (or parenthesis for courbeR2), nor of the way to put the curve in a plane</div><div>not through the origin. &nbsp;In any case, after fixing what I could, here is my code, patterned as much as</div><div>possible on the examples on pp. 165 &amp; 166 of the pst3d-solides guide:</div><div>***************************************************************************************************</div><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">% !TEX TS-program = latex</font></div><div><font class="Apple-style-span" color="#000000">\listfiles</font></div><div><font class="Apple-style-span" color="#000000">\documentclass[11pt]{article}</font></div><div><font class="Apple-style-span" color="#000000">\usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}</font></div><div><font class="Apple-style-span" color="#000000">\usepackage{pst-3d}</font></div><div><font class="Apple-style-span" color="#000000">\begin{document}</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                </font></span><font class="Apple-style-span" color="#000000">\begin{pspicture}(-0.5,-2)(3,3)</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">\psset{solidmemory}</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">\psset{lightsrc=50 20 50, viewpoint=15 60 70 rtp2xyz,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                        </font></span><font class="Apple-style-span" color="#000000">Decran=50}</font></div><div><font class="Apple-style-span" color="#000000"><br></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">\psSurface[</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000"> fillcolor=gray,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000"> incolor=green,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000"> ngrid=0.1 0.1,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000"> algebraic,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000"> grid,% comment it out to see meaning of ngrid</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">action=none,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">name=surface,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">](-1,-1)(1,1){ (x^2-3*y^2)/2 }</font></div><div><font class="Apple-style-span" color="#000000"><br></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                        </font></span><font class="Apple-style-span" color="#000000">\defFunction[algebraic]{ycurve}(t){0.5-1.5*t^2}{}{}</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                        </font></span><font class="Apple-style-span" color="#000000">\psSolid[%</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">object=courbe,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">range=-1.0 1.0,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">linecolor=blue,&nbsp;</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">linewidth=1.5pt,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">function=ycurve,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">action=none,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">name=ycurve,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">]%</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                        </font></span><font class="Apple-style-span" color="#000000">\defFunction[algebraic]{xcurve}(t){0.5}{0.5*t^2-0.375} {}</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                        </font></span><font class="Apple-style-span" color="#000000">\psSolid[%</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">object=courbeR2,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">range=-1.0 1.0,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">linecolor=lightgray,&nbsp;</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">linewidth=1.5pt,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">function=xcurve,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">action=none,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">name=xcurve</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">]%</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                        </font></span><font class="Apple-style-span" color="#000000">\psSolid[</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">object=fusion,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">action=draw**,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">base=surface ycurve xcurve,</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span><font class="Apple-style-span" color="#000000">]</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                        </font></span><font class="Apple-style-span" color="#000000">\composeSolid</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                                </font></span></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000000">                </font></span><font class="Apple-style-span" color="#000000">\end{pspicture}</font></div><div><font class="Apple-style-span" color="#000000">\end{document}</font></div></blockquote><div>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">*********************************************************************************************************</font></p><div>The resulting error message is</div><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Error: /stackunderflow in --exch--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Operand stack:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">&nbsp;&nbsp; yA</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Execution stack:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">&nbsp;&nbsp; %interp_exit &nbsp; .runexec2 &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 2 &nbsp; %stopped_push &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; false &nbsp; 1 &nbsp; %stopped_push &nbsp; 1862 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1861 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1845 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1739 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; --nostringval-- &nbsp; %errorexec_pop &nbsp; .runexec2 &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 2 &nbsp; %stopped_push &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 299 &nbsp; --nostringval-- &nbsp; %repeat_continue &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Dictionary stack:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">&nbsp;&nbsp; --dict:1150/1684(ro)(G)-- &nbsp; --dict:0/20(G)-- &nbsp; --dict:80/200(L)-- &nbsp; --dict:778/1012(L)-- &nbsp; --dict:175/300(L)-- &nbsp; --dict:38/200(L)-- &nbsp; --dict:185/200(L)-- &nbsp; --dict:778/1012(L)-- &nbsp; --dict:13/20(L)-- &nbsp; --dict:4/6(L)--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Current allocation mode is local</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Last OS error: 2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Current file position is 402256</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">GPL Ghostscript 8.70: Unrecoverable error, exit code 1</div></blockquote></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">I cannot figure out where my error is, and if I fix it, I don't know how to move these curves so that they go through the point (1, 1/2, z) instead of the origin.</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><br></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><br class="Apple-interchange-newline">Zbigniew Nitecki</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Department of Mathematics</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Tufts University</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medford, MA 02155</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; font-size: 12px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">telephones:</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3843</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept.<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3234</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept. fax<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3966</font></p><span class="Apple-style-span" style="font-size: 12px; "><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span>
</div>
<br><div><div>On Jul 23, 2010, at 9:05, Herbert Voss wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Am 22.07.2010 19:40, schrieb Zbigniew Nitecki:<br><blockquote type="cite">Thanks for pointing out the need to define ngrid. I used grid to avoid seeing <br></blockquote><blockquote type="cite">the gridlines on the surface.<br></blockquote><blockquote type="cite">Here is a complete code, which draws my version (that evaluates the function for <br></blockquote><blockquote type="cite">(0,2)\times(0,1))<br></blockquote><blockquote type="cite">and then yours (evaluating the function over (-1,1)\times(-1,1). Why do I get <br></blockquote><blockquote type="cite">the weird ticks (can I avoid them altogether?)<br></blockquote><blockquote type="cite">and why does my surface extend out of the box?<br></blockquote><br>that is a bug. Try this workaround:<br><br>\listfiles<br>\documentclass[11pt]{article}<br>\usepackage{pst-solides3d,pst-3dplot}<br>\makeatletter<br>\def\gridIIID@ii(#1,#2)(#3,#4)[#5,#6,#7]{%<br> &nbsp;\pst@killglue%<br> &nbsp;\begingroup%<br> &nbsp;\use@par%<br> &nbsp;\psSolid[object=parallelepiped,<br> &nbsp;&nbsp;&nbsp;intersectiontype=-1,<br> &nbsp;&nbsp;&nbsp;a={#2 #1 sub},b={#4 #3 sub},<br> &nbsp;&nbsp;&nbsp;c={\pst@solides@@Zmax\space \pst@solides@@Zmin\space sub},<br> &nbsp;&nbsp;&nbsp;action=draw](#1 #2 add 2 div,#3 #4 add 2 div,\pst@solides@@Zmax<br>\pst@solides@@Zmin add 2 div )%<br> &nbsp;\endgroup<br>}<br>\makeatother<br><br>\begin{document}<br>....<br>\end{document}<br><br>Herbert<br>_______________________________________________<br>PSTricks mailing list<br><a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a><br>http://tug.org/mailman/listinfo/pstricks<br>archive: http://www.tug.org/pipermail/pstricks/<br></div></blockquote></div><br></div></body></html>