Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122257716
par-commandestrace-en.tex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 16, 22:45
Size
1 KB
Mime Type
text/x-tex
Expires
Fri, Jul 18, 22:45 (2 d)
Engine
blob
Format
Raw Data
Handle
27457427
Attached To
R232 fabrepos2
par-commandestrace-en.tex
View Options
\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
Event Timeline
Log In to Comment