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