[pstricks] Re : PSTricks Digest, Vol 98, Issue 11

Manuel Luque mluque5130 at aol.com
Mon Mar 21 12:59:03 CET 2011


A first idea? Choose two points very close on the curve.

\documentclass{article}
\usepackage{pst-solides3d}

\begin{document}

\begin{center}
\psset{lightsrc=viewpoint,viewpoint=50 -20 30 rtp2xyz,Decran=50}
\begin{pspicture}(-5,-4)(6,3)
\pstVerb{/xTube {t Cos 2 mul} def /yTube {t Sin 2 mul} def /zTube {2 t mul Sin} def}%
\defFunction{F}(t){xTube}{yTube}{zTube}
% choix de deux points très voisins sur le tube
\pstVerb{/t1 3 def /t2 3.1 def }%
% l'extrémité
\pstVerb{/tf1 1.45 pi mul def /tf2 1.51 pi mul def }%
\psPoint(/t t1 def xTube ,yTube,zTube){A}
\psPoint(/t t2 def xTube ,yTube,zTube){B}
\psPoint(/t tf1 def xTube ,yTube,zTube){C}
\psPoint(/t tf2 def xTube ,yTube,zTube){D}
\psSolid[object=courbe,
   r=0,
   function=F,
   range=0 1.5 pi mul,
   linecolor=red,
   linewidth=2\pslinewidth]
\psline[arrowsize=0.2,linecolor=red]{->}(A)(B)
\psline[arrowsize=0.2,linecolor=red]{->}(C)(D)
\gridIIID[Zmin=-2,Zmax=2](-2,2)(-2,2)
\end{pspicture}
\end{center}
\end{document}

M.L.

 

 


 

 

-----E-mail d'origine-----
De : grivet <grivet at cnrs-orleans.fr>
A : pstricks at tug.org
Envoyé le : Lundi, 21 Mars 2011 10:05
Sujet : Re: [pstricks] PSTricks Digest, Vol 98, Issue 11


> Am 15.03.2011 11:02, schrieb grivet: 
>> I use the object "vecteur" under pst-solides3d; this draws an arrow of 
>> prescribed origin and direction. However, the arrow head (a cone) is 
>> very large and independant of the linewidth. Is it possible to have 
>> smaller arrowheads ? 
> see http://melusine.eu.org/lab/bpst/pst-solides3d/vecteu 
Thank you, this is just what I needed; the use of "definition" to specify len gth and 
 width of a vector head doesn't seem to be documented in the user's manual (2010/09/22). 
 
>> A further question about arrows. I use the object "courbe" (with zero 
>> radius) to draw magnetic field lines; how can I along or at the end of a 
>> field line? 
> did you know the package pst-magneticfield? 
> 
pst-magneticfield is a beautiful program; however, it is specific for current loops 
and coils; my case is somewhat more complicated. 
Let me restate my question, from which a sentence is missing. 
 
A further question about arrows. I use the object "courbe" (with zero 
radius) to draw magnetic field lines; how can I draw arrows along or at the end of a 
field line? 
 
TIA 
JP Grivet 
 
_______________________________________________ 
PSTricks mailing list 
PSTricks at tug.org 
http://tug.org/mailman/listinfo/pstricks 
archive: http://www.tug.org/pipermail/pstricks/ 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110321/8cecf102/attachment.html>


More information about the PSTricks mailing list