<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK, this means I can't use \psPoint to calculate a varying basepoint for the vector.<div>But I want to use a multido to draw the vector(s) at many points. &nbsp;Is the only way to do this</div><div>to explicitly write the formula for the point in terms of the parameters of \multido everywhere</div><div>the point appears?</div><div>Can \psPoint be replaced by a defFunction?</div><div><br></div><div>On a related note, how does one use defFunction (or another command)</div><div>to define a real-valued function, and then use its output in calculating&nbsp;</div><div>coordinates of points or components of vectors in pst3d-solides?<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 30, 2010, at 11:20, Herbert Voss wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Am 30.07.2010 16:13, schrieb Zbigniew Nitecki:<br><blockquote type="cite">The following code compiles fine:<br></blockquote><br><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>\psSolid[object=vecteur,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>linecolor=red,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>definition={[.05 0.3]},<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>args=%<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>0.529 \rt\space sin mul %<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>0.6 0.374 \rt\space cos mul sub %<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>0.6 0.374 \rt\space cos mul add),<br></blockquote></blockquote><br>the last ) leads to an error.<br><br><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span>%<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>action=draw**,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">%<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>](P)<br></blockquote></blockquote><br>(P) is not possible here, use 3d coordinates. This worked:<br><br>\listfiles<br>\documentclass[11pt]{article}<br>\usepackage{pst-solides3d}<br>\begin{document}<br><br>\begin{pspicture}(-0.5,-3.5)(3,3.5)<br>\psset{lightsrc=50 20 50, viewpoint=15 60 30 rtp2xyz,Decran=50}<br>\defFunction{gFunct}(u,v){v cos u mul}{v sin u mul}{1 u dup mul sub sqrt}<br>\psSolid[object=surfaceparametree,<br> &nbsp;base=0 1 0 360,<br> &nbsp;function=gFunct,<br> &nbsp;fillcolor=blue!30,<br> &nbsp;ngrid=50,<br> &nbsp;intersectiontype=0,<br> &nbsp;intersectionplan={[0 1 1 -1] [0 1 1 -1.2] [0 1 1 -1.3] [0 1 1 -1.4]},<br> &nbsp;intersectionlinewidth=2 2 2,<br> &nbsp;intersectioncolor=(rouge) (rouge) (rouge),<br> &nbsp;action=draw**]<br>\psPoint(0,0.7,0.7){P}<br>\psdots[dotsize=0.3,linecolor=red](P)<br>\multido{\rt=0.1+10}{36}{%<br> &nbsp;\psPoint(0.529 \rt\space sin mul,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.6 0.374 \rt\space cos mul sub,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.6 0.374 \rt\space cos mul add){P}<br> &nbsp;\psdots[dotsize=0.1](P)<br> &nbsp;\psSolid[object=vecteur,<br> &nbsp;&nbsp;&nbsp;linecolor=red,<br> &nbsp;&nbsp;&nbsp;definition={[.05 0.3]},<br> &nbsp;&nbsp;&nbsp;args=0.529 \rt\space sin mul<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.6 0.374 \rt\space cos mul sub<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.6 0.374 \rt\space cos mul add,<br> &nbsp;&nbsp;&nbsp;action=draw**](0.529 \rt\space sin mul,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.6 0.374 \rt\space cos mul sub,<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.6 0.374 \rt\space cos mul add)%<br> &nbsp;}<br>\end{pspicture}<br>\end{document}<br><br><br>Herbert<br><span>&lt;x.png&gt;</span>_______________________________________________<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/</div></blockquote></div><br></div></body></html>