<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Detailed answers are below; &nbsp;for context, what I am trying to do is do draw the surface (graphsurf)<div>in Question 1 together with the curves obtained by intersecting with two planes, each parallel</div><div>to a coordinate plane, through a given point (the intersection with the plane y=1/2 would be the&nbsp;</div><div>graph of the function curvey in Question 2 if I used 0.5 instead of 1 in the second input slot).</div><div>Fusion will give me the useul hidden lines feature. &nbsp;My two parts were trying to separate the fusion</div><div>problem from the definition of the curve, which on the face of it appears to be the problem.<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; 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: 0; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><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 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 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 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; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><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 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 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 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><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span>
</div>
<br><div><div>On Jul 24, 2010, at 12:23, Florian Schubert wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
Question 1 (there was no question :) ):<br>
I think the problem is, that you fuse the <font class="Apple-style-span">psSurface with nothing else.
I don`t know if it is what you want, but <br>
<br>
&nbsp; \psSolid[<br>
&nbsp; object=load,<br>
&nbsp; action=draw**,<br>
&nbsp; load=graphsurf,<br>
&nbsp; ]<br>
<br>
instead of<br>
<br>
</font>
<div><font color="#000000">&gt;</font><span class="Apple-tab-span" style="white-space: pre;"><font class="Apple-style-span"> </font></span><font class="Apple-style-span">\psSolid[</font></div>
<div><font color="#000000">&gt;</font><span class="Apple-tab-span" style="white-space: pre;"><font class="Apple-style-span"> </font></span><font class="Apple-style-span">object=fusion,</font></div>
<div><span class="Apple-tab-span" style="white-space: pre;"><font class="Apple-style-span">&gt; </font></span><font class="Apple-style-span">action=draw**,</font></div>
<div><span class="Apple-tab-span" style="white-space: pre;"><font class="Apple-style-span">&gt; </font></span><font class="Apple-style-span">base=graphsurf,</font></div>
<div><span class="Apple-tab-span" style="white-space: pre;"></span><font class="Apple-style-span">&gt; ]</font></div>
<br>
<font class="Apple-style-span">should work.<br></font></div></blockquote>**********************************************************<br>It doesn't: &nbsp;(the reason I am doing this roundabout way is that</div><div>eventually I want to fuse this surface with two curves, one of</div><div>which is the subject of the other question)</div><div>############################################</div><div>% !TEX TS-program = latex<br>\listfiles<br>\documentclass[11pt]{article}<br>\usepackage{pst-solides3d, pst-3dplot, pst-math,pstricks-add}<br>\usepackage{pst-3d}<br>\begin{document}<br><span class="Apple-tab-span" style="white-space:pre">                </span>\begin{pspicture}(-0.5,-2)(3,3)<br><span class="Apple-tab-span" style="white-space:pre">                                </span>\psset{solidmemory}<br><span class="Apple-tab-span" style="white-space:pre">                                </span>\psset{lightsrc=50 20 50, viewpoint=15 60 70 rtp2xyz,<br><span class="Apple-tab-span" style="white-space:pre">                                        </span>Decran=50}<br><span class="Apple-tab-span" style="white-space:pre">                                </span>\psSurface[<br><span class="Apple-tab-span" style="white-space:pre">                                </span>&nbsp;fillcolor=gray,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>&nbsp;incolor=green,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>&nbsp;ngrid=0.1 0.1,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>&nbsp;algebraic,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>&nbsp;grid,% comment it out to see meaning of ngrid<br><span class="Apple-tab-span" style="white-space:pre">                                </span>action=none,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>name=graphsurf,<br><span class="Apple-tab-span" style="white-space:pre">                                </span>](-1,-1)(1,1){ (x^2-3*y^2)/2 }<br><span class="Apple-tab-span" style="white-space:pre">                        </span>\psSolid[<br><span class="Apple-tab-span" style="white-space:pre">                                </span>object=load,<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=graphsurf,<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><br><span class="Apple-tab-span" style="white-space:pre">                </span>\end{pspicture}<br>\end{document}</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; ">Error: /undefined in solidloadname</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; --nostringval--</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--</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:777/1012(L)-- &nbsp; --dict:175/300(L)-- &nbsp; --dict:38/200(L)-- &nbsp; --dict:183/200(L)-- &nbsp; --dict:777/1012(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 399767</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.67410-1279993536/pst3d test 1.2.2.pdf ()</div></blockquote><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">*********************************************************</div></div><blockquote type="cite"><div bgcolor="#ffffff" text="#000000"><font class="Apple-style-span">
<br>
Question 2:</font><br>
&gt; <font class="Apple-style-span">\defFunction[algebraic]{curvey}(t){0.5-1.5*t^2}{}{}</font><br>
<br>
Empty brases are to be provided with a null.<br>
<font class="Apple-style-span">\defFunction[algebraic]{curvey}(t){0.5-1.5*t^2}{0}{0}</font><br>
<br>
And you have to use \psSolid instead of \psProjection.<br></div></blockquote><div><br></div><div>There are two parts to the second question.</div><div>Replacing \psProjection with \psSolid makes no difference: it still crashes.</div><div>In the example I copied, what was being drawn was the graph of the function</div><div>on a vertical plane. &nbsp;In fact, I want to do the same thing, but am totally suspicious</div><div>of the function definition (the only difference between the definition in</div><div>section 10.11 of the documentation is the function name and the defining formula,</div><div>neither of which looks problematic to me. &nbsp;But of course this is a strange use.</div><div>If instead I look at the example of the object courbe on p. 22 of the documentation,</div><div>I think I understand that the function can act precisely like a \parametricplotThreeD</div><div>with one argument. &nbsp;But in my case this doesn't work either:</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">%\usepackage{graphicsmacros}</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">\defFunction[algebraic]{curvey}(t){t}{1}{0.5-1.5*t^2}%{}{}</font></div><div><font class="Apple-style-span" color="#000000">%</font><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]{curvey}(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">r=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">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">resolution=720,</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=curvey,</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">]%</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><div>(I put in "r=0" mimicking the example) yields an empty page (but no crash)</div><div>while uncommenting &nbsp;"r=0" yields a surface:</div><div></div></div></div></body></html>