[pstricks] 3d "arrows"
Per Ting
perting at gmail.com
Thu Dec 30 23:02:50 CET 2010
When I run your code, Miktex stops at pstricks-add (or pst-plot, included in
it) with error messag:
("C:\Program Files (x86)\MiKTeX
2.9\tex\generic\pstricks-add\pstricks-add.tex"
("C:\Users\Main
User\AppData\Local\MiKTeX\2.9\tex\generic\pst-plot\pst-plot.tex
" v1.10, 2010/02/11
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1006 \psset{labelFontSize={},mathLabel=true}
?
but when I comment out \usepackage{pstricks-add}, it works fine. Any idea
what is going wrong?
Thanks,
Per
On Thu, Dec 30, 2010 at 4:44 PM, Jon Joseph <josco.jon at gmail.com> wrote:
> All: I have included a program which draws a "circular" arrow indicating a
> direction of rotation. This is meant to demonstrate the right hand rule
> with the vector pointing in the z direction (as shown). The picture looks
> great and was exactly what I was trying to do. However, my method is not
> very generalizable and if I wanted to do it again I would need to
> recalculate some absolute coordinates (e.g. the position of the arrow). Does
> any one have a suggestion as to how this type of object can be
> compartmentalized within pst-solides3d? Thanks and happy new year. Jon
>
>
>
> \documentclass{article}
> \usepackage[dvipsnames]{pstricks}
> \usepackage{pst-solides3d}
> \usepackage{pstricks-add}
> \usepackage{amssymb, amsmath}
>
>
> \begin{document}
>
>
> \psset{unit=5mm}
> \begin{pspicture}[showgrid=false](-5,-5)(5,5)
> \psset{viewpoint=10 30 30 rtp2xyz, Decran=30}
> \defFunction{mycylinder}(u,v){2 u Cos mul}{2 u Sin mul}{v}
> \psSolid[object=surfaceparametree,
> base=pi 2 div 9 pi mul 4 div 0 .25,
> ngrid=30,
> function=mycylinder,
> grid,
> incolor=red!20,
> fillcolor=red,
> %RotY=-10,
> action=draw**]
> \psSolid[
> object=face,
> fillcolor=red,
> incolor=blue,
> biface,
> base=0 0 .5 0 .25 .75,
> linecolor=red,
> RotY=90,
> RotZ = 60,
> action=draw**](2 sqrt, 2 sqrt, .375)
> \psSolid[
> object=vecteur,
> args=0 0 2,
> linewidth=2pt,
> linecolor=blue]
> \psPoint(0,0,2.2){A} \uput[0](A){\large $\vec{\omega}$}
> \axesIIID(0,0,0)(3,3,3)
> \end{pspicture}
>
> \end{document}
> _______________________________________________
> 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/20101230/789c534f/attachment.html>
More information about the PSTricks
mailing list