<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I am trying to create a shaded picture of the part of the surface z=x^2+y^2 in a portion of the first octant.
<div>I have a few different questions:</div>
<div><b>1. Main Question:</b></div>
<div>While I like pst-solides3d, I am trying to do this within pstThreeD, in part because I don't see how to incorporate all the parameters needed for a SolidObject.  </div>
<div>On p. 388 of Herbert Voss's "Graphics and Postscript for TeX and LaTeX" there is a picture that looks qualitatively like what I would want. In order to try to understand how this works,  I have tried to copy (with obvious minor changes) the code he gives
 for that picture.  Here is what I wrote:</div>
<div>
<blockquote type="cite">
<div><br>
</div>
<div>\def\funct{x dup mul y dup mul add}</div>
<div><br>
</div>
<div>\begin{pspicture}(-2,3)(5,6)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>\psset{Beta=20, Alpha=20, subticks=7}</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>\psset{unit=3}</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>\pstThreeDCoor[xMin=0, yMin=0, zMin=0, xMax=1, yMax=1, zMax=1, linewidth=1pt, linecolor=black]</div>
<div>\pstThreeDPlaneGrid(0,0)(1,1)</div>
<div>\pstThreeDPlaneGrid[planeGrid=xz,planeGridOffset=0](0,0)(1,1)</div>
<div>\pstThreeDPlaneGrid [planeGrid=yz,planeGridOffset=0](0,0)(1,1)</div>
<div><br>
</div>
<div>%{\psset{linewidth=1.5pt}</div>
<div>%<span class="Apple-tab-span" style="white-space:pre"> </span>\pscustom[fillstyle=gradient, plotstyle=curve]{</div>
<div>%<span class="Apple-tab-span" style="white-space:pre"> </span>\psplotThreeD[xPlotpoints=200,yPlotpoints=1, drawStyle=xlines](0,1)(0,0){\funct}</div>
<div>%<span class="Apple-tab-span" style="white-space:pre"> </span>\psplotThreeD[xPlotpoints=1,yPlotpoints=200, drawStyle=ylines](1,1)(0,1){\funct}</div>
<div>%<span class="Apple-tab-span" style="white-space:pre"> </span>\psplotThreeD[xPlotpoints=200,yPlotpoints=1, drawStyle=xlines](1,0)(1,1){\funct}</div>
<div>%<span class="Apple-tab-span" style="white-space:pre"> </span>\psplotThreeD[xPlotpoints=1,yPlotpoints=200, drawStyle=ylines](0,0)(1,0){\funct}</div>
<div>%<span class="Apple-tab-span" style="white-space:pre"> </span>}</div>
<div>%}</div>
<div>\end{pspicture}</div>
</blockquote>
<div><br>
</div>
The significance of the commenting out is this: with all of the commenting out in place (i.e., commented out), I get the expected: the three coordinate planes showing a grid.  When they are uncommented (which of course is the whole point) I get the error message</div>
<div>"Bad draw style:  \@pstrickserr…immediate help.}\errmessage{#1}\endgroup"</div>
<div>(I've left out liinebreaks)</div>
<div>My preamble calls the following pstricks packages:</div>
<div>
<blockquote type="cite">
<div>\usepackage{pst-plot, pst-math}</div>
<div>\usepackage{pst-solides3d}</div>
<div>\usepackage{pst-3dplot, pst-func}</div>
<div>\usepackage{pst-grad}</div>
<div>\usepackage{pstricks-add}</div>
<div>\usepackage{pst-text}</div>
<div>\usepackage{pst-node}</div>
</blockquote>
</div>
<div>
<div><br>
</div>
</div>
<div>Am I missing something that I should have called?  Are the drawStyles xlines and ylines</div>
<div>obsolete?  Any idea what is wrong?</div>
<div><br>
</div>
<div>Once I figure this out, my <b>SECOND QUESTION </b>is probably answered somewhere, but I can't find it.  I want to put this "3d"</div>
<div>figure inside a larger pspicture.  Is there a way for me to set it up, then create the whole thing as an object which I can </div>
<div>place (e.g., \rput) in my larger pspicture?  I guess my main concern is how to get the (local) coordinates </div>
<div>(internal to the drawing of the object) protected from the global coordinates of the pspicture.</div>
<div><br>
</div>
<div>Any help would be appreciated.</div>
<div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div 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></div>
<div 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></div>
<div 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></div>
<div 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></div>
<div 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>
</div>
<div 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></div>
<div 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-tab">    </span>(617)627-3843</font></div>
<div 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-tab">    </span>(617)627-3234</font></div>
<div 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-tab">    </span>(617)627-3966</font></div>
<span class="Apple-style-span" style="font-size: 12px; "><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span></div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>