Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc-en / .svn / text-base / par-face-en.tex.svn-base
1 \section{One- and two-sided solids}
2
3 The contour of \Lkeyword{face} is defined in the plane $Oxy$ by
4 \begin{verbatim}
5 \psSolid[object=face,base=x1 y1 x2 y2 x3 y3 ...xn yn](0,0,0)%
6 \end{verbatim}
7 The edge of \Lkeyword{face} is defined in the plane $Oxy$ by the coordinates
8 of its vertices, given in counterclockwise order by the parameter \Lkeyword{base}:
9
10
11 \clearpage
12 \subsection{Triangular \texttt{`faces'}}
13
14 \begin{LTXexample}[width=6.5cm]
15 \psset{unit=0.4}
16 \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
17 \begin{pspicture}(-5.5,-4.5)(7,3.5)
18 \psSolid[object=grille,base=-4 6 -4 4,action=draw,linecolor=gray](0,0,0)
19 \psSolid[object=face,fillcolor=yellow,action=draw*,
20   incolor=blue,biface,base=0 0 3 0 1.5 3,
21   num=all,show=all](0,1,0)
22 \psSolid[object=face,fillcolor=yellow,
23   action=draw*,incolor=blue,
24   base=0 0 3 0 1.5 3,num=all,
25   show=all,biface,RotX=180](0,-1,0)
26 \axesIIID(0,0,0)(6,6,3)
27 \end{pspicture}
28 \end{LTXexample}
29
30
31 \subsection{\texttt{`face'} defined by a function}
32 \begin{LTXexample}[width=7.5cm]
33 \psset{unit=0.45}
34 \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
35 \def\BASE{0 10 360{/Angle ED 5 Angle cos dup mul mul % x
36  3 Angle cos 3 exp Angle sin mul mul } for}% y
37 \begin{pspicture}(-7,-5.5)(9,6)
38 \defFunction[algebraic]{F}(t){5*(cos(t))^2}
39    {3*(sin(t))*(cos(t))^3}{}
40 \psSolid[object=grille,base=-6 6 -6 6,action=draw,linecolor=gray](0,0,0)
41 \psSolid[object=face,fillcolor=magenta,action=draw*,
42   incolor=blue,biface,RotZ=90,
43   base=0 2 pi mul {F} CourbeR2+](0,0,0)
44 \psSolid[object=face,fillcolor=yellow,action=draw*,
45   incolor=blue,biface,
46   base=0 2 pi mul {F} CourbeR2+](0,0,0)
47 \psSolid[object=face,fillcolor=yellow,action=draw*,
48   incolor=blue,biface,RotY=180,
49   base=0 2 pi mul {F} CourbeR2+](0,0,0)
50 \psSolid[object=face,fillcolor=yellow,action=draw*,
51   incolor=red,biface,RotY=180,RotZ=90,
52   base=0 2 pi mul {F} CourbeR2+](0,0,0)
53 \axesIIID(0,0,0)(6,6,5)
54 \end{pspicture}
55 \end{LTXexample}
56
57
58
59 \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.