<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am trying to draw two vertical planes (the xz and yz planes) together with their intersections with the surface z=4x^2+y^2. &nbsp;I am encountering two problems which I don't understand.<div><br></div><div>Here is the full source code:</div><div>****************************************************************</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>\begin{pspicture}(-3,-1.5)(3,5.5)<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psset{unit=0.35}<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psset{lightsrc=40 50 50, viewpoint=18 65 30 rtp2xyz}<br><span class="Apple-tab-span" style="white-space:pre">                        </span><br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psset{solidmemory}<br><span class="Apple-tab-span" style="white-space:pre">                        </span><br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psSolid[object=plan,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>definition=equation,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>args={[1 0 0 0] 90},<br><span class="Apple-tab-span" style="white-space:pre">                        </span>base=-2 2 -0.5 4.5,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>fillcolor=blue!10,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>opacity=0,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>name=xplane,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>]<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psset{plan=xplane}<br><span class="Apple-tab-span" style="white-space:pre">                        </span><br><span class="Apple-tab-span" style="white-space:pre">                        </span>\defFunction[algebraic]{xcutfcn}(y){y*y}{}{}<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psProjection[object=courbe,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>linecolor=blue,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>range=-2 2,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>resolution=720,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>function=xcutfcn,&nbsp;<br><span class="Apple-tab-span" style="white-space:pre">                                </span>name=xcut,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>action=none,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>]<br><span class="Apple-tab-span" style="white-space:pre">                                </span><br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psSolid[object=plan,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>definition=equation,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>args={[0 1 0 0]},<br><span class="Apple-tab-span" style="white-space:pre">                        </span>base=-1 1 -0.5 4.5,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>fillcolor=red!10,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>opacity=0,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>name=yplane,<br><span class="Apple-tab-span" style="white-space:pre">                        </span>]<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psset{plan=yplane}<br><span class="Apple-tab-span" style="white-space:pre">                        </span><br><span class="Apple-tab-span" style="white-space:pre">                        </span>\defFunction[algebraic]{ycutfcn}(x){4*x*x}{}{}<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psProjection[object=courbe,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>linecolor=red,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>range=-1 1,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>resolution=720,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>function=ycutfcn,&nbsp;<br><span class="Apple-tab-span" style="white-space:pre">                                </span>name=ycut,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>action=none,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>]<br><span class="Apple-tab-span" style="white-space:pre">                                </span><br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psSolid[object=fusion,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>action=draw**,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>base=xplane yplane,<br>%<span class="Apple-tab-span" style="white-space:pre">                                </span>base=xplane,<br>%<span class="Apple-tab-span" style="white-space:pre">                                </span>base=yplane,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>]<br><span class="Apple-tab-span" style="white-space:pre">                </span>\composeSolid<br><span class="Apple-tab-span" style="white-space:pre">                </span>\end{pspicture}<br>******************************************************************************</div><div>Question 1: &nbsp;Note that there are two "blocks" of code, one defining the xz plane (and its intersection with the paraboloid, in blue) and another defining the yz plane (and its intersection with the paraboloid.</div><div>When I comment out the yz-plane part (and use the base=xplane line in the fusion) I get a perfectly good picture of the xz-plane, with the curve, in blue;</div><div>but when instead I comment out the xz-plane part but not the yz-plane part (and modify the base in fusion appropriately) I get the yz-plane, but NOT the curve.&nbsp;</div><div><br></div><div>&nbsp;I don't understand the difference&nbsp;in the two behaviors.</div><div><br></div><div>Question 2: &nbsp;When I DON'T comment EITHER block of code, and use the combined base (this is the version shown above), I get a crash with the error message</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: /typecheck in --length--</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; -0.0 &nbsp; 0.0 &nbsp; 0.0 &nbsp; 0.0 &nbsp; -0.0 &nbsp; -1.0 &nbsp; -1.0 &nbsp; 1.0 &nbsp; 1.0 &nbsp; -1.0 &nbsp; n &nbsp; 0.0</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; 0 &nbsp; --nostringval-- &nbsp; %repeat_continue &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:802/1012(L)-- &nbsp; --dict:175/300(L)-- &nbsp; --dict:38/200(L)-- &nbsp; --dict:185/200(L)-- &nbsp; --dict:802/1012(L)-- &nbsp; --dict:2/11(L)-- &nbsp; --dict:4/5(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 412796</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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">### FAILED to generate /tmp/altpdflatex.3494-1282232252/pst3dtest1.2.pdf ()</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; ">Since each part alone compiles (albeit without the curve in the yplane case), I can only assume</font></p><div>that the crash is a conflict between the two psset{plane=....} statements. &nbsp;But then how do I go about creating the two planes and having them print together, but with hidden lines (which is why I am trying to use fusion)?</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 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></body></html>