<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Isn`t it possible to define two points and connecting it with a line:<br>
<br>
\pspoint(&lt;x0&gt;,&lt;y0&gt;,&lt;z0&gt;){A1}<br>
\pspoint(&lt;x1&gt;,&lt;y1&gt;,&lt;z1&gt;){A2}<br>
\psline[&lt;param&gt;]{&lt;arrows&gt;}(A1)(A2)<br>
<br>
<div><span class="Apple-tab-span" style="white-space: pre;"></span><font
 class="Apple-style-span" color="#000000">\vecThree[linecolor=red,
arrows=-&gt;] {0.612}{-0.612}{0.5}{1.142}{-1.142}{0.933}:<br>
</font><br>
\psPoint<font class="Apple-style-span" color="#000000">
(0.612,-0.612,0.5)</font>{A1}<br>
\psPoint(<font class="Apple-style-span" color="#000000">1.142,-1.142,0.933</font>){A2}<br>
\psline[linecolor=red,arrowsize=.5pt]{-&gt;}(A1)(A2)<br>
<br>
</div>
See "pst-solides3d: The Documentation &#8211; The Basics v.&nbsp; 4.10
(2008/07/24)"<br>
&nbsp;CHAPTER 10 Interaction with PSTricks<br>
<br>
Florian<br>
<br>
Am 23.07.2010 18:26, schrieb Zbigniew Nitecki:
<blockquote cite="mid:2B4C17FE-CBE9-4467-8742-EC9D7EF20A73@tufts.edu"
 type="cite">The code shown below is intended to draw a sphere, a point
on the sphere, the plane tangent to the sphere there, and the normal
vector there.
  <div><br>
  </div>
  <div>Everything works well, except the normal vector. &nbsp;When I try to
use the predefined pst3d-solides object vecteur, I get the appropriate
vector, but</div>
  <div>the arrowhead on it is awful (is there a way to control
arrowheads in this setting?)</div>
  <div>So I tried a pst-3dplot macro(defined just before
\begin{document} which has worked in the past;</div>
  <div>it is called in the last uncommented line before
\end{pspicture}. &nbsp;When this call is commented out, the code compiles
fine (of course,</div>
  <div>with no vector shown), but when it is not commented out, the
error message is</div>
  <div>
  <blockquote type="cite">
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Error:
/typecheck in --show--</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Operand
stack:</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;
--nostringval--</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Execution
stack:</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&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: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Dictionary
stack:</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;
--dict:1150/1684(ro)(G)-- &nbsp; --dict:0/20(G)-- &nbsp; --dict:80/200(L)-- &nbsp;
--dict:771/1012(L)-- &nbsp; --dict:180/300(L)-- &nbsp; --dict:38/200(L)-- &nbsp;
--dict:186/200(L)--</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Current
allocation mode is local</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Last
OS error: 2</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">Current
file position is 551632</div>
    <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">GPL
Ghostscript 8.70: Unrecoverable error, exit code 1</div>
  </blockquote>
  </div>
  <div>
  <div
 style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><br>
  </div>
  </div>
  <div>Where is the conflict causing this problem? &nbsp;Does anyone have a
workaround?</div>
  <div><br>
  </div>
  <div><br>
  </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><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">\newcommand{\vecThree}[6]{\pstThreeDLine[arrows=-&gt;]%</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">(#1\space,#2\space,#3\space)(#4\space,#5\space,#6\space)</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><font
 class="Apple-style-span" color="#000000">%arrow from (#1,#2,#3) to
(#4,#5,#6)</font></div>
    <div><font class="Apple-style-span" color="#000000"><br>
    </font></div>
    <div><font class="Apple-style-span" color="#000000">\begin{document}</font></div>
    <div><font class="Apple-style-span" color="#000000">a little text
before, going on and on and on and on....</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{figure}[htbp]</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{center}</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}(-3,-3.5)(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">\psset{unit=0.75}</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">\psset{lightsrc=50 -20 40,
viewpoint=20 20 50 rtp2xyz,</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">Decran=50}</font></div>
    <div><font class="Apple-style-span" color="#000000"><br>
    </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">\axesIIID[linecolor=red](1,1,1)(2,2,2)</font><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></div>
    <div><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><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=sphere,</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=1,</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">ngrid=20 20,</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">fillcolor=lightgray,</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">grid,</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><font
 class="Apple-style-span" color="#000000">\psPoint(0.612,-0.612,0.5){P}</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">\psPolygonIIID[linestyle=none,fillstyle=solid,fillcolor=red!20,
opacity=0.1]%</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">(0.259,-0.29,1.366)%</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">(0,-1.224,0.5)%</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">(0.965,-0.965,-0.366)%</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">(1.224,0,0.5)%</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">\psdots[dotstyle=o,
dotsize=0.2,fillcolor=red](P)</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">\psSolid[</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">object=vecteur,</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">linecolor=red,</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">args=0.53 -0.53 0.433]
(0.612,-0.612,0.5)</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">]</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">\vecThree[linecolor=red,
arrows=-&gt;] {0.612}{-0.612}{0.5}{1.142}{-1.142}{0.933}</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">\pstThreeDPut(1,0.5,0.3){\textcolor{red}{$(1,\half,\recip{8})$}}</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><span class="Apple-tab-span" style="white-space: pre;"><font
 class="Apple-style-span" color="#000000"> </font></span></div>
    <div><font class="Apple-style-span" color="#000000"><br>
    </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">\caption{Tangent Plane to
Sphere at
$\left(\frac{\sqrt{3}}{2\sqrt{2}},-\frac{\sqrt{3}}{2\sqrt{2}},\frac{1}{2}\right)$}</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">\label{fig:spheretan}</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">\end{center}</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">\end{figure}</font><span
 class="Apple-tab-span" style="white-space: pre;"><font
 class="Apple-style-span" color="#000000"> </font></span></div>
    <div><font class="Apple-style-span" color="#000000"><br>
    </font></div>
    <div><font class="Apple-style-span" color="#000000">a little text
after</font></div>
    <div><font class="Apple-style-span" color="#000000">\end{document}</font></div>
  </blockquote>
  <div><br>
  </div>
Picture when line "vecThree[linecolor=red..." is commented out:</div>
  <br>
  <fieldset class="mimeAttachmentHeader"></fieldset>
  <br>
  <div><br>
  <div>
  <p style="margin: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="Helvetica"><br class="Apple-interchange-newline">
Zbigniew Nitecki</font></p>
  <p style="margin: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="Helvetica">Department of Mathematics</font></p>
  <p style="margin: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="Helvetica">Tufts University</font></p>
  <p style="margin: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="Helvetica">Medford, MA 02155</font></p>
  <p
 style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; min-height: 14px; font-size: 12px;"><br>
  </p>
  <p style="margin: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="Helvetica">telephones:</font></p>
  <p style="margin: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="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: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="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: 0px; font-size: 12px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"
 size="3" face="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>
  </div>
  <br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
PSTricks mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PSTricks@tug.org">PSTricks@tug.org</a>
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a>
archive: <a class="moz-txt-link-freetext" href="http://www.tug.org/pipermail/pstricks/">http://www.tug.org/pipermail/pstricks/</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

Florian Schubert
Pestalozzistra&szlig;e 47

D-79540 L&ouml;rrach

47&deg; 35' 50'' n&ouml;rdliche Breite, 7&deg; 39' 35'' &ouml;stliche L&auml;nge

</pre>
</body>
</html>