Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc / .svn / text-base / par-chanfrein.tex.svn-base
1 \section {Chanfreiner un solide}
2
3 \begin{multicols}{3}
4 \begin{center}
5 \psset{unit=0.5}
6 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
7 \begin{pspicture*}(-4,-4)(4,4)
8 \psframe(-4,-4)(4,4)
9 \psSolid[object=cube,
10    a=5,
11    fillcolor=red,
12 ]
13 \end{pspicture*}
14 \end{center}
15 \columnbreak
16 \begin{center}
17 \psset{unit=0.5}
18 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
19 \begin{pspicture*}(-4,-4)(4,4)
20 \psframe(-4,-4)(4,4)
21 \psSolid[object=cube,
22    a=5,
23    fillcolor=red,
24    chanfrein,
25    chanfreincoeff=.6,
26 ]
27 \end{pspicture*}
28 \end{center}
29 \columnbreak
30 \begin{verbatim}
31 \psSolid[object=cube,
32    a=5,
33    fillcolor=red,
34    chanfrein,
35    chanfreincoeff=.6,
36 ]
37 \end{verbatim}
38 \end{multicols}
39
40 L'option \Cadre{[chanfrein]} permet de chanfreiner un solide. Cette
41 option utilise l'argument \Cadre{[chanfreincoeff]} (valeur $0,8$ par
42 défaut) qui indique le rapport $k$ à utiliser ($0<k<1$). Ce rapport
43 est celui d'une homothétie de cetre le centre de la face considérée.
44
45 \begin{multicols}{3}
46 \begin{center}
47 \psset{unit=0.5}
48 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=30}
49 \begin{pspicture*}(-4,-4)(4,4)
50 \psframe(-4,-4)(4,4)
51 \psSolid[object=dodecahedron,
52    a=5,
53    fillcolor=cyan,
54 ]
55 \end{pspicture*}
56 \end{center}
57 \columnbreak
58 \begin{center}
59 \psset{unit=0.5}
60 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=30}
61 \begin{pspicture*}(-4,-4)(4,4)
62 \psframe(-4,-4)(4,4)
63 \psSolid[object=dodecahedron,
64    a=5,
65    fillcolor=cyan,
66    chanfrein,
67    chanfreincoeff=.8,
68 ]
69 \end{pspicture*}
70 \end{center}
71 \columnbreak
72 \begin{verbatim}
73 \psSolid[object=dodecahedron,
74    a=5,
75    fillcolor=cyan,
76    chanfrein,
77    chanfreincoeff=.8,
78 ]
79 \end{verbatim}
80 \end{multicols}
81
82
83 %\newpage

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.