summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-face_en_corr.tex
blob: 0c5b507d803befbc5eee4c3960d307755e8c947b (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
\section{One- and two-sided solids}

The contour of \verb+face+ is defined in the plane $Oxy$ by
\begin{verbatim}
\psSolid[object=face,base=x1 y1 x2 y2 x3 y3 ...xn yn](0,0,0)%
\end{verbatim}
The edge of \verb+face+ is defined in the plane $Oxy$ by the coordinates
of its vertices, given in counterclockwise order by the parameter \verb+base+:


\clearpage
\subsection{Triangular \texttt{`faces'}}

\begin{LTXexample}[width=6.5cm]
\psset{unit=0.4}
\psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
\begin{pspicture}(-5.5,-4.5)(7,3.5)
\psSolid[object=grille,base=-4 6 -4 4,action=draw,linecolor=gray](0,0,0)
\psSolid[object=face,fillcolor=yellow,action=draw*,
  incolor=blue,biface,base=0 0 3 0 1.5 3,
  num=all,show=all](0,1,0)
\psSolid[object=face,fillcolor=yellow,
  action=draw*,incolor=blue,
  base=0 0 3 0 1.5 3,num=all,
  show=all,biface,RotX=180](0,-1,0)
\axesIIID(0,0,0)(6,6,3)
\end{pspicture}
\end{LTXexample}


\subsection{\texttt{`face'} defined by a function}
\begin{LTXexample}[width=7.5cm]
\psset{unit=0.45}
\psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
\def\BASE{0 10 360{/Angle ED 5 Angle cos dup mul mul % x
 3 Angle cos 3 exp Angle sin mul mul } for}% y
\begin{pspicture}(-7,-5.5)(9,6)
\defFunction[algebraic]{F}(t){5*(cos(t))^2}
   {3*(sin(t))*(cos(t))^3}{}
\psSolid[object=grille,base=-6 6 -6 6,action=draw,linecolor=gray](0,0,0)
\psSolid[object=face,fillcolor=magenta,action=draw*,
  incolor=blue,biface,RotZ=90,
  base=0 2 pi mul {F} CourbeR2+](0,0,0)
\psSolid[object=face,fillcolor=yellow,action=draw*,
  incolor=blue,biface,
  base=0 2 pi mul {F} CourbeR2+](0,0,0)
\psSolid[object=face,fillcolor=yellow,action=draw*,
  incolor=blue,biface,RotY=180,
  base=0 2 pi mul {F} CourbeR2+](0,0,0)
\psSolid[object=face,fillcolor=yellow,action=draw*,
  incolor=red,biface,RotY=180,RotZ=90,
  base=0 2 pi mul {F} CourbeR2+](0,0,0)
\axesIIID(0,0,0)(6,6,5)
\end{pspicture}
\end{LTXexample}



\endinput