<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for the explanations.<div>However, when I tried to modify your code to fit my function</div><div>*********************************************************************</div><div><div>% !TEX TS-program = latex</div><div>\documentclass{article}</div><div>\usepackage{pst-solides3d}</div><div>\pagestyle{empty}</div><div>\begin{document}</div><div><br></div><div>\psset{unit=0.5,viewpoint=50 60 30 rtp2xyz,Decran=50}</div><div>&nbsp;&nbsp; \psset{lightsrc=viewpoint}</div><div>&nbsp;&nbsp; \begin{pspicture}(-4,-5)(6,8)</div><div>&nbsp;&nbsp; &nbsp; \psSurface*[ngrid=.3 .3,incolor=yellow,linewidth=0.5\pslinewidth,</div><div>&nbsp;&nbsp; &nbsp; r = 2,</div><div>&nbsp;&nbsp; &nbsp; axesboxed,</div><div>&nbsp;&nbsp; &nbsp; Zmin=0,Zmax=4](-1,-2)(1,2){</div><div>&nbsp;&nbsp; &nbsp; 4 x dup mul mul y dup mul add}</div><div>&nbsp;&nbsp; \end{pspicture}</div><div><br></div><div><br></div><div>\end{document}</div><div>*************************************************************************</div></div><div>I got&nbsp;</div><div><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; ">5805-1282309844/exa026.pdf</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">(Error : mauvais type d argument dans solidwithinfaces)</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; "><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; ">and a blank output.</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; ">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 Aug 20, 2010, at 3:03, Herbert Voss wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Am 19.08.2010 22:55, schrieb Zbigniew Nitecki:<br><blockquote type="cite">Yes, the picture is along the right lines.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I understand some of the code, but not all of it.<br></blockquote><blockquote type="cite">The starred version of \psSurface does not appear in the pst-solides3d documentation;<br></blockquote><blockquote type="cite">I don't see the role of r=3 sqrt 2 mul<br></blockquote><blockquote type="cite">and what does the last part of the function definition<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>-5 It{pop -5} if<br></blockquote><blockquote type="cite">mean or do?<br></blockquote><br>instead of using base=&lt;xmin xmax ymin ymax&gt; one can specify the<br>radius of the base: r²=x²+y²<br><br>-5 lt {pop -5} if<br>on the stack is the z value. Is it less than -5 delete it (pop)<br>and replace it with -5.<br><br>use \psSurface to see the differenve to the star version \psSurface*<br><br>Herbert<br><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>