1 \section {\' Evider un solide}
3 Certains des solides prédéfinis ont un solide ``{\sl creux}'' qui lui
4 est naturellement associé (le cône, le tronc de cône, le cylindre,
5 le prisme et la calotte sphérique). Pour ceux là, une option
6 \Cadre{[hollow=$boolean$]} est prévue. Positionné à
7 \textsl{false}, on a le solide habituel; positionné à \textsl{true} on
10 \subsubsection {Exemple 1 : cylindre et cylindre creux}
13 \psset{lightsrc=10 20 30,viewpoint=50 60 25 rtp2xyz,Decran=50}
14 \setlength{\columnseprule}{1pt}
16 \begin{pspicture}(-2,-3)(6,6)
18 \psSolid[object=cylindre,h=6,r=2,
19 fillcolor=yellow,incolor=red,
26 \psSolid[object=cylindre,
37 \psset{lightsrc=10 20 30,viewpoint=50 60 25 rtp2xyz,Decran=50}
38 \setlength{\columnseprule}{1pt}
40 \begin{pspicture}(-2,-3)(6,6)
42 \psSolid[object=cylindre,h=6,r=2,
48 \psSolid[object=cylindre,
56 \subsubsection {Exemple 2 : prisme et prisme creux}
60 \psset{lightsrc=10 20 30,viewpoint=50 60 25 rtp2xyz,Decran=50}
61 \begin{pspicture}(-8,-4)(4,8)
62 \psframe(-9,-3.5)(8,6)
63 \defFunction{F}(t){t cos 3 mul}{t sin 3 mul}{}
64 \defFunction{G}(t){t cos}{t sin}{}
65 \psSolid[object=grille,base=-6 6 -4 4,action=draw]%
66 \psSolid[object=prisme,h=8,fillcolor=yellow,RotX=90,%decal=0,
68 base=0 180 {F} CourbeR2+
71 \axesIIID(3,4,3)(8,6,7)
78 \defFunction{F}(t){t cos 3 mul}{t sin 3 mul}{}
79 \defFunction{G}(t){t cos}{t sin}{}
81 object=grille,base=-6 6 -4 4,action=draw]%
83 object=prisme,h=8,fillcolor=yellow,RotX=90,
85 base=0 180 {F} CourbeR2+
88 \axesIIID(3,4,3)(8,6,7)
94 \psset{lightsrc=10 20 30,viewpoint=50 60 25 rtp2xyz,Decran=50}
95 \begin{pspicture}(-8,-4)(3,8)
96 \psframe(-9,-3.5)(8,6)
97 \defFunction{F}(t){t cos 3 mul}{t sin 3 mul}{}
98 \defFunction{G}(t){t cos}{t sin}{}
99 \psSolid[object=grille,base=-6 6 -4 4,action=draw]%
100 \psSolid[object=prisme,h=8,fillcolor=yellow,RotX=90,
101 hollow,ngrid=4,incolor=red,
103 base=0 180 {F} CourbeR2+
106 \axesIIID(3,4,3)(8,6,7)
110 \begin{minipage}{8cm}
113 \defFunction{F}(t){t cos 3 mul}{t sin 3 mul}{}
114 \defFunction{G}(t){t cos}{t sin}{}
116 object=grille,base=-6 6 -4 4,action=draw]%
118 object=prisme,h=8,fillcolor=yellow,RotX=90,
119 hollow,ngrid=4,incolor=red,
121 base=0 180 {F} CourbeR2+
124 \axesIIID(3,4,3)(8,6,7)
128 \subsubsection {Exemple 3 : calotte sphérique et calotte sphérique creuse}
132 \psset{lightsrc=42 24 13,viewpoint=50 30 15 rtp2xyz,Decran=50}
133 \setlength{\columnseprule}{1pt}
135 \begin{pspicture}(-5,-5)(5,5)
138 \psSolid[object=calottesphere,r=3,ngrid=16 18,
139 fillcolor=cyan!50,incolor=yellow,theta=45,phi=-30,hollow,RotY=-80]%
140 \axesIIID(0,3,3)(6,5,4)
143 \psSolid[object=calottesphere,r=3,
145 fillcolor=cyan!50,incolor=yellow,
146 theta=45,phi=-30,hollow,RotY=-60]%
150 \begin{pspicture}(-5,-3)(5,7)
152 \psSolid[object=grille,base=-5 5 -5 5,action=draw]%
153 \psSolid[object=calottesphere,r=3,ngrid=16 18,
154 fillcolor=cyan!50,incolor=yellow,theta=45,phi=-30](0,0,1.5)%
155 \axesIIID(3,3,3.6)(6,6,5)
158 \psSolid[object=calottesphere,r=3,
159 ngrid=16 18,fillcolor=cyan!50,
160 incolor=yellow,theta=45,phi=-30]