Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc-en / .svn / text-base / par-tronque-en.tex.svn-base
1 \section{Truncate a solid's vertices}
2
3 The option \Lkeyword{trunc} allows us to \Index{truncate} a solid's vertices either
4 globally or individually. This option uses the key
5 \Lkeyword{trunccoeff} (value $0.25$ by default) which indicates the ratio
6 $k$ used for the \Index{truncation} ($0<k\leq 0.5$).
7 %
8 \begin{itemize}
9   \item \texttt{\Lkeyword{trunc}=\Lkeyval{all}} truncates all the vertices;
10   \item \texttt{\Lkeyword{trunc}=0 1 2 3} truncates the vertices 0, 1, 2 and 3.
11 \end{itemize}
12 %
13 \begin{LTXexample}[width=6cm]
14 \psset{viewpoint=50 50 30 rtp2xyz,Decran=25,lightsrc=viewpoint}
15 \begin{pspicture}(-3,-2)(2,2)
16 \psSolid[
17    action=draw,
18    object=cube,
19    RotZ=30,
20    trunccoeff=.2,
21    trunc=all]%
22 \end{pspicture}
23 \end{LTXexample}
24
25 \begin{LTXexample}[width=6cm]
26 \psset{viewpoint=50 50 30 rtp2xyz,Decran=25,lightsrc=viewpoint}
27 \begin{pspicture}(-3,-2)(2,2)
28 \psSolid[action=draw,
29    object=cube,
30    RotZ=30,
31    trunccoeff=.2,
32    trunc=0 1 2 3]%
33 \end{pspicture}
34 \end{LTXexample}
35
36 \endinput 

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.