summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-numeroterfacettes_en_corr.tex
blob: 3beee0d881f1bf5bf45f90e781de51d59a1ff992 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
\section{Numbering of the faces}

The option \verb+numfaces+ gives permission to number every face with its correspondent index number.
\begin{itemize}
  \item \verb+[numfaces=all]+ all faces are numbered;
  \item \verb+[numefaces=0 1 2 3]+ only the faces that have index 0, 1, 2 and 3 are numbered.
\end{itemize}
The option \verb+fontsize+ allows to fix the measurement of the used character set.
Finally, the Boolean \verb+visibility+ the numbering of faces that are not visible.
By default, the Boolean is set to \verb+[visibility=true]+, so the visibility is set up (e.~g. numbers are not set to invisible faces).


\psset{viewpoint=50 20 30 rtp2xyz,Decran=50}
\begin{LTXexample}[width=8cm]
\psset{unit=1}
\begin{pspicture}(-4,-3)(3,1.5)
\psSolid[object=grille,
   base=0 4 -2 2,
   numfaces=2 6 7 10,
   linecolor=gray](0,0,0)
\axesIIID(0,0,0)(4,2,1)
\end{pspicture}
\end{LTXexample}



%% \begin{multicols}{2}
%%
%% \bgroup
%% \psset{SphericalCoor=true,viewpoint=50 20 30}
%% \begin{center}
%% \psset{unit=0.75}
%% \psset{lightsrc=30 -20 10,SphericalCoor=true,viewpoint=50 -20 10,Decran=50}
%% \begin{pspicture*}(-5,-4)(6,6)
%% \psframe(-5,-4)(6,6)
%% \axesIIID(0,0,0)(4,4,4)
%% \psSolid[object=cube,
%%    RotY=90,
%%    ngrid=4,
%%    numfaces=2 6 10,
%%    action=draw**](0,0,0)
%% \end{pspicture*}
%% \end{center}
%% \egroup
%%
%% \columnbreak
%%
%% \begin{verbatim}
%% \axesIIID(0,0,0)(4,4,4)
%% \psSolid[object=cube,
%%    RotY=90,
%%    ngrid=4,
%%    numfaces=2 6 10,
%%    action=draw**](0,0,0)
%% \end{verbatim}
%%
%% \end{multicols}




\psset{viewpoint=50 -20 10 rtp2xyz,Decran=50}
\begin{LTXexample}[width=8cm]
\begin{pspicture*}(-4,-3)(4,3)
\psSolid[object=cube,
   RotY=90,
   ngrid=4,
   fontsize=15,
   action=draw,
   numfaces=all,](0,0,0)
\end{pspicture*}
\end{LTXexample}

%%% exemple 3

The options of \bs{psSolid} accept PostScript commands, in particular the \verb+for+ loop.

With the instruction \verb+[numfaces=0 1 5 {} for]+ all faces with the index numbers between $0$
and $5$ are set up. The instruction \verb+[numfaces=8 3 23 {} for]+ sets up every third index number between $8$ and $23$.

\psset{viewpoint=50 -20 10 rtp2xyz,Decran=50}
\begin{LTXexample}[width=8cm]
\begin{pspicture*}(-4,-3)(4,3)
\axesIIID(0,0,0)(8,3,2)
\psSolid[object=grille,
   RotY=90,
   RotZ=180,
   ngrid=1.,
   fontsize=15,
   numfaces=
      0 1 5 {} for
      8 3 23 {} for,
   base=-2 2 -3 3,
   visibility=false,
   action=draw](0,0,0)
\end{pspicture*}
\end{LTXexample}

\endinput