Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc-en / .svn / text-base / par-modes-en.tex.svn-base
1 \section{The \Index{modes}}
2
3 For some solids, there are certain gratings predefined.
4 We can setup the key values to \texttt{\Lkeyword{mode}=0, 1, 2, 3 or 4} which allows to have some some gratings from very coarse  \texttt{\Lkeyword{mode}=0} up to very fine \texttt{\Lkeyword{mode}=4}.
5
6 This permits us to have a draft version of a solid with \texttt{\Lkeyword{mode}=0} (fewer calculations) and then refine it with \texttt{\Lkeyword{mode}=4} for the final version.
7
8 \psResetSolidKeys
9 %% avec mode = 0
10 \begin{center}
11 \psset{lightsrc=10 5 0,viewpoint=50 20 -40 rtp2xyz,Decran=35,unit=0.5cm,%
12        incolor=white,fillcolor=green!50,r0=5,r1=2,h=5,object=troncconecreux,r0=5,r1=2,h=5}
13 \begin{pspicture}(-5,-5)(5,5)
14 \psframe(-5,-5)(5,5)
15 \psSolid[mode=0]
16 \rput(0,-4.5){\psframebox[fillstyle=solid,fillcolor=black]{\small \textcolor{white}{\texttt{[mode=0]}}}}
17 \end{pspicture}
18 %
19 \begin{pspicture}(-5,-5)(5,5)
20 \psframe(-5,-5)(5,5)
21 \psSolid[mode=1]%
22 \rput(0,-4.5){\psframebox[fillstyle=solid,fillcolor=black]{\small\textcolor{white}{\texttt{[mode=1]}}}}
23 \end{pspicture}
24 %
25 \begin{pspicture}(-5,-5)(5,5)
26 \psframe(-5,-5)(5,5)
27 \psSolid[mode=2]%
28 \rput(0,-4.5){\psframebox[fillstyle=solid,fillcolor=black]{\textcolor{white}{\texttt{[mode=2]}}}}
29 \end{pspicture}
30 %
31 \begin{pspicture}(-5,-5)(5,5)
32 \psframe(-5,-5)(5,5)
33 \psSolid[mode=3]%
34 \rput(0,-4.5){\psframebox[fillstyle=solid,fillcolor=black]{\textcolor{white}{\texttt{[mode=3]}}}}
35 \end{pspicture}
36 %
37 \begin{pspicture}(-5,-5)(5,5)
38 \psframe(-5,-5)(5,5)
39 \psSolid[mode=4]%
40 \rput(0,-4.5){\psframebox[fillstyle=solid,fillcolor=black]{\textcolor{white}{\texttt{[mode=4]}}}}
41 \end{pspicture}
42 %
43 \begin{pspicture}(-5,-5)(5,5)
44 \psframe(-5,-5)(5,5)
45 \psSolid[mode=5]%
46 \rput(0,-4.5){\psframebox[fillstyle=solid,fillcolor=black]{\small\textcolor{white}{\texttt{[mode=5] => [mode=4] forced}}}}
47 \end{pspicture}
48 \end{center}
49 %\newpage
50
51 \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.