Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc / par-face.tex
1 \section {Solide monoface -- Solide biface}
2
3 Le contour de \texttt{face} est défini sur le plan $Oxy$ par
4 les coordonnées des sommets placés dans le sens trigonométrique par le
5 paramètre \texttt{base} :
6 \begin{verbatim}
7 \psSolid[object=face,base=x1 y1 x2 y2 x3 y3 ...xn yn](0,0,0)%
8 \end{verbatim}
9 \subsection{\texttt{`face'} triangulaire}
10 \begin{minipage}{0.47\linewidth}
11 \psset{unit=0.6}
12 \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
13 \begin{pspicture}(-5.5,-4.5)(7,3.5)
14 \psframe(-5.5,-4.5)(7,3.5)
15 \psSolid[object=grille,base=-4 6 -4 4,action=draw,linecolor=gray](0,0,0)
16 \psSolid[object=face,fillcolor=yellow,action=draw*,
17 incolor=blue,
18 biface,
19 base=0 0 3 0 1.5 3,
20 num=all ,
21 show=all
22 ](0,1,0)
23 \psSolid[object=face,fillcolor=yellow,action=draw*,
24 incolor=blue,
25 base=0 0 3 0 1.5 3,
26 num=all,
27 show=all,
28 biface,
29 RotX=180](0,-1,0)
30 \axesIIID(0,0,0)(6,6,3)
31 \end{pspicture}
32 \end{minipage}
33 %
34 \begin{minipage}{0.5\linewidth}
35 \begin{verbatim}
36 \psset{unit=0.6}
37 \psset{
38 viewpoint=50 -20 30 rtp2xyz,Decran=50}
39 \begin{pspicture}(-6,-4.5)(7,3.5)
40 \psframe(-6,-4.5)(7,3.5)
41 \psSolid[
42 object=face,fillcolor=yellow,action=draw*,
43 incolor=blue, biface, base=0 0 3 0 1.5 3
44 ](0,1,0)
45 \psSolid[
46 object=face,fillcolor=yellow,action=draw*,
47 incolor=blue, base=0 0 3 0 1.5 3,
48 biface, RotX=180](0,-1,0)
49 \end{pspicture
50 \end{verbatim}
51 \end{minipage}
52
53
54
55 \subsection{\texttt{`face'} définie par une fonction}
56
57 \begin{minipage}{0.5\linewidth}
58 \psset{unit=0.45}
59 \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
60 \def\BASE{0 10 360{/Angle ED 5 Angle cos dup mul mul % x
61 3 Angle cos 3 exp Angle sin mul mul % y
62 } for}
63 \begin{pspicture}(-9,-5.5)(9,6)
64 \psframe(-9,-5.5)(9,6)
65 \defFunction[algebraic]{F}(t)
66 {5*(cos(t))^2}
67 {3*(sin(t))*(cos(t))^3}{}
68 % {t cos dup mul 5 mul}
69 % {t cos 3 exp t sin mul 3 mul}{}
70 \psSolid[object=grille,base=-6 6 -6 6,action=draw,linecolor=gray](0,0,0)
71 \psSolid[object=face,fillcolor=magenta,action=draw*,
72 incolor=blue,
73 biface,RotZ=90,
74 base=0 2 pi mul {F} CourbeR2+
75 ](0,0,0)%
76 \psSolid[object=face,fillcolor=yellow,action=draw*,
77 incolor=blue,
78 biface,
79 base=0 2 pi mul {F} CourbeR2+](0,0,0)%
80 \psSolid[object=face,fillcolor=yellow,action=draw*,
81 incolor=blue,
82 biface,RotY=180,
83 base=0 2 pi mul {F} CourbeR2+](0,0,0)%
84 \psSolid[object=face,fillcolor=yellow,action=draw*,
85 incolor=red,
86 biface,RotY=180,RotZ=90,
87 base=0 2 pi mul {F} CourbeR2+](0,0,0)%
88 \axesIIID(0,0,0)(6,6,5)
89 \end{pspicture}
90 \end{minipage}
91 %
92 \begin{minipage}{0.45\linewidth}
93 \begin{verbatim}
94 \defFunction[algebraic]{F}(t)
95 {5*(cos(t))^2}
96 {3*(sin(t))*(cos(t))^3}{}
97 base=0 2 pi mul {F} CourbeR2
98 \end{verbatim}
99 \end{minipage}
100

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.