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