1 \section{Commands for drawing
}
3 The parameter for
\Index{drawing
} comes with the key value
\Lkeyword{action
} within the command
6 Four values are possible:
8 \item \Lkeyval{none
}: nothing is drawn.
9 \item \Lkeyval{draw
}: draws the solid as a framework and sets up dashed lines for the hidden edges.
10 \item \Lkeyval{draw*
}: draws the solid with dashed lines for the hidden edges and colours the visible faces.
11 \item \Lkeyword{draw**
}: draws the solid with a painting algorithm, without the
12 hidden edges and with colouration of the visible faces.
14 \encadre{The key values
\Lkeyval{draw
} and
\Lkeyword{draw*
} only make sense for convex solids.
}
19 \psset{viewpoint=
50 -
20 30 rtp2xyz
}
22 \begin{pspicture
}(-
2.5,-
2.5)(
2.5,
2.5)
23 \psframe(-
2.5,-
2.5)(
2.5,
2.5)
25 \psSolid[object=cube,action=draw,RotZ=
20]%
26 \rput(-
1,-
2)
{\texttt{draw
}}
30 \begin{pspicture
}(-
2.5,-
2.5)(
2.5,
2.5)
31 \psframe(-
2.5,-
2.5)(
2.5,
2.5)
33 \psSolid[object=cube,action=draw*,fillcolor=magenta!
20,RotZ=
20]%
34 \rput(-
1,-
2)
{\texttt{draw*
}}
38 \begin{pspicture
}(-
2.5,-
2.5)(
2.5,
2.5)
39 \psframe(-
2.5,-
2.5)(
2.5,
2.5)
41 \psSolid[object=cube,fillcolor=magenta!
20,RotZ=
20]%
42 \rput(-
1,-
2)
{\texttt{draw**
}}