summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/text/par-commandestrace-en.tex
blob: 939256bd115c54b99ae790f08b16c7c815444106 (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
\section{Commands for drawing}

The parameter for \Index{drawing} comes with the key value \Lkeyword{action} within the command
\Lcs{psSolid}.

Four values are possible:
\begin{compactitem}
\item \Lkeyval{none}: nothing is drawn.
\item \Lkeyval{draw}: draws the solid as a framework and sets up dashed lines for the hidden edges.
\item \Lkeyval{draw*}: draws the solid with dashed lines for the hidden edges and colours the visible faces.
\item \Lkeyword{draw**}: draws the solid with a painting algorithm, without the
    hidden edges and with colouration of the visible faces.
\end{compactitem}
\encadre{The key values \Lkeyval{draw} and \Lkeyword{draw*} only make sense for convex solids.}

\begin{center}
%%

\psset{viewpoint=50 -20 30 rtp2xyz}
%%
\hfil
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
\psframe(-2.5,-2.5)(2.5,2.5)
\psset{Decran=20}
\psSolid[object=cube,action=draw,RotZ=20]%
\rput(-1,-2){\texttt{draw}}
\end{pspicture}
\hfil
%%
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
\psframe(-2.5,-2.5)(2.5,2.5)
\psset{Decran=20}
\psSolid[object=cube,action=draw*,fillcolor=magenta!20,RotZ=20]%
\rput(-1,-2){\texttt{draw*}}
\end{pspicture}
\hfil
%%
\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
\psframe(-2.5,-2.5)(2.5,2.5)
\psset{Decran=20}
\psSolid[object=cube,fillcolor=magenta!20,RotZ=20]%
\rput(-1,-2){\texttt{draw**}}
\end{pspicture}
\hfil
%%
\end{center}

\endinput