3 Pour un certain nombre de solides, on a prédéfini certains
4 maillages. Le positionnement du paramètre
\Cadre{[mode=
0,
1,
2,
3 ou
4]} permet de passer
5 du maillage prédéfini le plus grossier
\texttt{[mode=
0]} au maillage
6 prédéfini le plus fin
\texttt{[mode=
4]}.
8 Ceci permet notamment de mettre au point une image avec tous les
9 solides en
\texttt{[mode=
0]} afin d'accélérer les calculs, avant de passer au
10 \texttt{[mode=
4]} pour une image définitive.
14 \psset{lightsrc=
10 5 0,viewpoint=
50 20 -
40 rtp2xyz,Decran=
35,unit=
0.5,
%
15 incolor=white,fillcolor=green!
50,r0=
5,r1=
2,h=
5,object=troncconecreux,r0=
5,r1=
2,h=
5}
16 \begin{pspicture
}(-
5,-
5)(
5,
5)
19 \rput(
0,-
4.5)
{\psframebox[fillstyle=solid,fillcolor=black
]{\small \textcolor{white
}{\texttt{[mode=
0]}}}}
22 \begin{pspicture
}(-
5,-
5)(
5,
5)
25 \rput(
0,-
4.5)
{\psframebox[fillstyle=solid,fillcolor=black
]{\small\textcolor{white
}{\texttt{[mode=
1]}}}}
28 \begin{pspicture
}(-
5,-
5)(
5,
5)
31 \rput(
0,-
4.5)
{\psframebox[fillstyle=solid,fillcolor=black
]{\textcolor{white
}{\texttt{[mode=
2]}}}}
34 \begin{pspicture
}(-
5,-
5)(
5,
5)
37 \rput(
0,-
4.5)
{\psframebox[fillstyle=solid,fillcolor=black
]{\textcolor{white
}{\texttt{[mode=
3]}}}}
40 \begin{pspicture
}(-
5,-
5)(
5,
5)
43 \rput(
0,-
4.5)
{\psframebox[fillstyle=solid,fillcolor=black
]{\textcolor{white
}{\texttt{[mode=
4]}}}}
46 \begin{pspicture
}(-
5,-
5)(
5,
5)
49 \rput(
0,-
4.5)
{\psframebox[fillstyle=solid,fillcolor=black
]{\small\textcolor{white
}{\texttt{[mode=
5] =>
[mode=
4] forcé
}}}}