diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-commandestrace-en.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-commandestrace-en.tex | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-commandestrace-en.tex b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-commandestrace-en.tex new file mode 100644 index 00000000000..65da4797234 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-commandestrace-en.tex @@ -0,0 +1,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{itemize} +\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{itemize} +\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 |