1 \section{One- and two-sided solids
}
3 The contour of
\Lkeyword{face
} is defined in the plane $Oxy$ by
5 \psSolid[object=face,base=x1 y1 x2 y2 x3 y3 ...xn yn
](
0,
0,
0)
%
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
}:
12 \subsection{Triangular
\texttt{`faces'
}}
14 \begin{LTXexample
}[width=
6.5cm
]
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)
31 \subsection{\texttt{`face'
} defined by a function
}
32 \begin{LTXexample
}[width=
7.5cm
]
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*,
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)