summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-commandestrace_en_corr.tex
blob: 3cdc3c7c14551065a0672af74fa5c178d272a471 (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
\section{Commands for drawing}
The parameter for drawing comes with the keyvalue \verb+action=+ within the command
\bs{psSolid}.

Four values are possible:
\begin{itemize}
\item \verb+none+: nothing is drawn.
\item\verb+draw+: draws the solid as a framework and sets up dashed lines for the hidden edges.
\item\verb+draw*+: draws the solid with dashed lines for the hidden edges and colours the visible faces.
\item\verb+draw**+: draws the solid with a painting algorithm, without the 
    hidden edges and with coloration of the visible faces.
\end{itemize}
\encadre{The keyvalues \texttt{draw} and \texttt{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