Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc / .svn / text-base / par-anneaux2.tex.svn-base
1 \subsection{Bobine vide}
2
3
4 \begin{minipage}{0.45\linewidth}
5 \begin{verbatim}
6 \newcommand\SectionBobine{
7    r h 2 div % 1
8    r h 2 div neg % 2
9    R h 2 div neg % 3
10    R h 3 div neg % 4
11    R h 4 div sub h 3 div neg % 5
12    R h 4 div sub h 3 div % 6
13    R h 3 div % 7
14    R h 2 div % 8
15 }
16 \end{verbatim}
17 \end{minipage}
18 \hfill
19 \begin{minipage}{0.45\linewidth}
20 \begin{pspicture}(-2,-2)(5,2)
21 \pnode(!2 3 2 div){S1}
22 \pnode(!2 3 2 div neg){S2}
23 \pnode(!4 3 2 div neg){S3}
24 \pnode(!4 3 3 div neg){S4}
25 \pnode(!4 3 4 div sub 3 3 div neg){S5}
26 \pnode(!4 3 4 div sub 3 3 div){S6}
27 \pnode(!4 3 3 div){S7}
28 \pnode(!4 3 2 div){S8}
29 \def\pneuSection{\pspolygon[fillstyle=vlines,linewidth=2\pslinewidth]%
30  (S1)(S2)(S3)(S4)(S5)(S6)(S7)(S8)}
31 \rput(0,0){\pneuSection}\rput{180}{\pspolygon[fillstyle=vlines,linewidth=1.5pt]%
32  (!2 3 2 div)(!2 3 2 div neg)(!4 3 2 div neg)
33  (!4 3 3 div neg)(!4 3 4 div sub 3 3 div neg)
34  (!4 3 4 div sub 3 3 div)(!4 3 3 div)(!4 3 2 div)}
35 \psline(-3,1.5)(3,1.5)\psline(-3,-1.5)(3,-1.5)
36 \psline[linestyle=dashed,dash=1 0.2 0.05 0.2]{->}(0,-3)(0,3)
37 \uput[u](0,3){$z$}\uput[r](4.1,0){$y$}\uput[dl](0,0){$O$}
38 \psline[linestyle=dashed](2,-1)(2,1.5)
39 \psline[linestyle=dashed](4,-1)(4,2.5)
40 \psline[linestyle=dashed](-4,-1)(4,-1)
41 \psline[linestyle=dashed](-4,1)(4,1)
42 \psline[linestyle=dashed]{->}(-4,0)(4.2,0)
43 \psline{->}(0,1.8)(2,1.8)\uput[u](1,1.8){$r$}
44 \psline{->}(0,2.5)(4,2.5)\uput[u](2,2.5){$R$}
45 \psline{<->}(5,-1.5)(5,1.5)\uput[r](5,0){$h$}
46 \uput[u](S1){1}
47 \uput[d](S2){2}
48 \uput[d](S3){3}
49 \uput[r](S4){4}
50 \uput[ur](S5){5}
51 \uput[dr](S6){6}
52 \uput[r](S7){7}
53 \uput[r](S8){8}
54 \psdots[linecolor=red](S1)(S2)(S3)(S4)(S5)(S6)(S7)(S8)
55 \end{pspicture}
56 \end{minipage}
57
58
59 \begin{center}
60 \begin{pspicture}(-5,-6)(5,5)
61 \def\SectionBobine{
62    r h 2 div % 1
63    r h 2 div neg % 2
64    R h 2 div neg % 3
65    R h 3 div neg % 4
66    R h 4 div sub h 3 div neg % 5
67    R h 4 div sub h 3 div % 6
68    R h 3 div % 7
69    R h 2 div % 8
70 }
71 \psframe*[linecolor=blue!50](-5,-5)(5,4)
72 \psset{viewpoint=70 40 10 rtp2xyz,Decran=25,lightsrc=0 30 100}
73 \psSolid[object=grille,base=-15 15 -15 15,fillcolor=yellow!30!black!10](0,0,-8)
74 %\psSolid[object=prisme,h=2,base=-15 1 -15 -1 15 -1 15 1](0,0,-8)
75 \psSolid[object=anneau,section=\SectionBobine,fillcolor=gray!50,h=6,R=8,r=4,RotX=90,linecolor=gray]%
76 \end{pspicture}
77 \end{center}
78
79
80 \begin{lstlisting}[basicstyle=\small\ttfamily]
81 \psSolid[object=grille,base=-15 15 -15 15,fillcolor=yellow!30](0,0,-8)
82 \psSolid[object=anneau,section=\SectionBobine,fillcolor=gray!50,h=6,R=8,r=4,RotX=90,linecolor=gray]%
83 \end{lstlisting}
84
85
86 \subsection{D'autres anneaux}
87 Trois autres exemples sont disponibles sur la page :
88
89 \url{http://syracuse.eu.org/lab/bpst/pst-solides3d/anneaux}
90
91
92 \endinput

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.