summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc/par-anneaux2.tex
blob: 08fef75dffcce003662831656ce5750f6a20548d (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
\subsection{Bobine vide}


\begin{minipage}{0.45\linewidth}
\begin{verbatim}
\newcommand\SectionBobine{
   r h 2 div % 1
   r h 2 div neg % 2
   R h 2 div neg % 3
   R h 3 div neg % 4
   R h 4 div sub h 3 div neg % 5
   R h 4 div sub h 3 div % 6
   R h 3 div % 7
   R h 2 div % 8
}
\end{verbatim}
\end{minipage}
\hfill
\begin{minipage}{0.45\linewidth}
\begin{pspicture}(-2,-2)(5,2)
\pnode(!2 3 2 div){S1}
\pnode(!2 3 2 div neg){S2}
\pnode(!4 3 2 div neg){S3}
\pnode(!4 3 3 div neg){S4}
\pnode(!4 3 4 div sub 3 3 div neg){S5}
\pnode(!4 3 4 div sub 3 3 div){S6}
\pnode(!4 3 3 div){S7}
\pnode(!4 3 2 div){S8}
\def\pneuSection{\pspolygon[fillstyle=vlines,linewidth=2\pslinewidth]%
 (S1)(S2)(S3)(S4)(S5)(S6)(S7)(S8)}
\rput(0,0){\pneuSection}\rput{180}{\pspolygon[fillstyle=vlines,linewidth=1.5pt]%
 (!2 3 2 div)(!2 3 2 div neg)(!4 3 2 div neg)
 (!4 3 3 div neg)(!4 3 4 div sub 3 3 div neg)
 (!4 3 4 div sub 3 3 div)(!4 3 3 div)(!4 3 2 div)}
\psline(-3,1.5)(3,1.5)\psline(-3,-1.5)(3,-1.5)
\psline[linestyle=dashed,dash=1 0.2 0.05 0.2]{->}(0,-3)(0,3)
\uput[u](0,3){$z$}\uput[r](4.1,0){$y$}\uput[dl](0,0){$O$}
\psline[linestyle=dashed](2,-1)(2,1.5)
\psline[linestyle=dashed](4,-1)(4,2.5)
\psline[linestyle=dashed](-4,-1)(4,-1)
\psline[linestyle=dashed](-4,1)(4,1)
\psline[linestyle=dashed]{->}(-4,0)(4.2,0)
\psline{->}(0,1.8)(2,1.8)\uput[u](1,1.8){$r$}
\psline{->}(0,2.5)(4,2.5)\uput[u](2,2.5){$R$}
\psline{<->}(5,-1.5)(5,1.5)\uput[r](5,0){$h$}
\uput[u](S1){1}
\uput[d](S2){2}
\uput[d](S3){3}
\uput[r](S4){4}
\uput[ur](S5){5}
\uput[dr](S6){6}
\uput[r](S7){7}
\uput[r](S8){8}
\psdots[linecolor=red](S1)(S2)(S3)(S4)(S5)(S6)(S7)(S8)
\end{pspicture}
\end{minipage}


\begin{center}
\begin{pspicture}(-5,-6)(5,5)
\def\SectionBobine{
   r h 2 div % 1
   r h 2 div neg % 2
   R h 2 div neg % 3
   R h 3 div neg % 4
   R h 4 div sub h 3 div neg % 5
   R h 4 div sub h 3 div % 6
   R h 3 div % 7
   R h 2 div % 8
}
\psframe*[linecolor=blue!50](-5,-5)(5,4)
\psset{viewpoint=70 40 10 rtp2xyz,Decran=25,lightsrc=0 30 100}
\psSolid[object=grille,base=-15 15 -15 15,fillcolor=yellow!30!black!10](0,0,-8)
%\psSolid[object=prisme,h=2,base=-15 1 -15 -1 15 -1 15 1](0,0,-8)
\psSolid[object=anneau,section=\SectionBobine,fillcolor=gray!50,h=6,R=8,r=4,RotX=90,linecolor=gray]%
\end{pspicture}
\end{center}


\begin{lstlisting}[basicstyle=\small\ttfamily]
\psSolid[object=grille,base=-15 15 -15 15,fillcolor=yellow!30](0,0,-8)
\psSolid[object=anneau,section=\SectionBobine,fillcolor=gray!50,h=6,R=8,r=4,RotX=90,linecolor=gray]%
\end{lstlisting}


\subsection{D'autres anneaux}
Trois autres exemples sont disponibles sur la page :

\url{http://syracuse.eu.org/lab/bpst/pst-solides3d/anneaux}


\endinput