summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-3dplot/examples/spherCoor.tex
blob: 3112ee123c9a79775490ec8935e5b13f11602bd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\documentclass[12pt,a4paper]{article}
\usepackage{pstricks}
\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-6,-6)(6,6)
\psset{unit=7.5cm,hiddenLine=true,drawCoor=true}
\def\oA{%
  \pstThreeDLine[linecolor=blue,linewidth=3pt,%
    SphericalCoor=true,arrows=c-> ](0,0,0)(1,60,70)%
}
\def\oB{%
  \pstThreeDLine[linecolor=red,linewidth=3pt,%
    SphericalCoor=true,arrows=c->](0,0,0)(1,10,50)%
}
\def\oAB{%
  \pstThreeDEllipse[beginAngle=90,endAngle=122,fillcolor=green,%
    SphericalCoor=true](0,0,0)(1,140,40)(1,10,50)%
}
\pstThreeDCoor[drawing=true, linewidth=1pt,linecolor=black,%
  xMin=0,xMax=1.1, yMin=0,yMax=1.1, zMin=0,zMax=1.1]
\pstThreeDEllipse[beginAngle=0, endAngle=90,linestyle=dotted]%
  (0,0,0)(-1,0,0)(0,1,0)
\pstThreeDEllipse[beginAngle=0, endAngle=90,linestyle=dotted]%
  (0,0,0)(-1,0,0)(0,0,1)
\pstThreeDEllipse[beginAngle=180, endAngle=90,linestyle=dotted]%
  (0,0,0)(0,0,1)(0,1,0)

\psset{SphericalCoor=true}
\pstThreeDDot[dotstyle=none](1,10,50)
\pstThreeDDot[dotstyle=none](1,60,70)
\pscustom[fillstyle=crosshatch,hatchcolor=yellow,%
  linestyle=none]{\oA\oB\oAB}
\oA \oB \oAB
\pstThreeDPut[origin=lb](1,60,70){\Large $\vec\Omega_1$}
\pstThreeDPut[origin=rb](1,10,50){\Large $\vec\Omega_2 \,$}
\pstThreeDPut[origin=lb](1,10,65){\Large $\gamma_{12}$}

\end{pspicture}
\end{document}