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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
\section{Emptying a solid}
Several of the predefined solids have a ``\textit{hollow}'' relative which is naturally associated with it (the cone, the truncated cone, the cylinder, the prism and the spherical zone). For all those, the option \texttt{\Lkeyword{hollow}=true} is provided.
Set to \texttt{false}, we get the ``filled'' solid; set to \texttt{true} we get the ``hollow'' version.
\subsubsection{Example 1: a \Index{cylinder} and a \Index{hollow cylinder}}
\begin{LTXexample}[width=5cm]
\psset{unit=0.5}
\psset{lightsrc=viewpoint,viewpoint=50 60 25 rtp2xyz,Decran=50}
\begin{pspicture}(-2,-3)(6,6)
\psSolid[object=cylindre,h=6,r=2,
fillcolor=yellow,
](0,4,0)
\end{pspicture}
\end{LTXexample}
\begin{LTXexample}[width=5cm]
\psset{unit=0.5}
\psset{lightsrc=viewpoint,viewpoint=50 60 25 rtp2xyz,Decran=50}
\begin{pspicture}(-2,-3)(6,6)
\psSolid[object=cylindre,h=6,r=2,
fillcolor=yellow,incolor=red,
hollow](0,4,0)
\end{pspicture}
\end{LTXexample}
\newpage
\subsubsection{Example 2: a \Index{prism} and a \Index{hollow prism}}
\begin{LTXexample}[width=8.7cm]
\psset{unit=0.5}
\psset{lightsrc=viewpoint,viewpoint=50 60 25 rtp2xyz,Decran=50}
\begin{pspicture}(-9,-4)(4,8)
\defFunction{F}(t){t cos 3 mul}{t sin 3 mul}{}
\defFunction{G}(t){t cos}{t sin}{}
\psSolid[object=grille,base=-6 6 -4 4,action=draw]%
\psSolid[object=prisme,
h=8,fillcolor=yellow,
RotX=90,ngrid=8 18,
base=0 180 {F} CourbeR2+
180 0 {G} CourbeR2+](0,4,0)
\axesIIID(3,4,3)(8,6,7)
\end{pspicture}
\end{LTXexample}
\begin{LTXexample}[width=8.7cm]
\psset{unit=0.5}
\psset{lightsrc=viewpoint,viewpoint=50 60 25 rtp2xyz,Decran=50}
\begin{pspicture}(-9,-4)(3,8)
\defFunction{F}(t){t cos 3 mul}{t sin 3 mul}{}
\defFunction{G}(t){t cos}{t sin}{}
\psSolid[object=grille,base=-6 6 -4 4,action=draw]%
\psSolid[object=prisme,
h=8,fillcolor=yellow,incolor=red,
RotX=90,hollow,ngrid=8 18,
base=0 180 {F} CourbeR2+
180 0 {G} CourbeR2+](0,4,0)
\axesIIID(3,4,3)(8,6,7)
\end{pspicture}
\end{LTXexample}
\newpage
\subsubsection{Example 3: a \Index{spherical zone} and a \Index{hollow spherical zone}}
\begin{LTXexample}[width=7.5cm]
\psset{unit=0.5}
\psset{lightsrc=10 20 30,viewpoint=50 60 25 rtp2xyz,Decran=50}
\begin{pspicture}(-7,-4)(5,7)
\psSolid[object=grille,
base=-5 5 -5 5,
action=draw]%
\psSolid[object=calottesphere,
r=3,ngrid=16 18,
fillcolor=cyan!50,
incolor=yellow,
theta=45,phi=-30](0,0,1.5)%
\axesIIID(3,3,3.6)(6,6,5)
\end{pspicture}
\end{LTXexample}
\begin{LTXexample}[width=7.5cm]
\psset{unit=0.5}
\psset{lightsrc=10 20 30,viewpoint=50 60 25 rtp2xyz,Decran=50}
\begin{pspicture}(-7,-5)(7,5)
\psSolid[object=calottesphere,
r=3,ngrid=16 18,
fillcolor=cyan!50,
incolor=yellow,
theta=45,phi=-30,
hollow,
RotY=-80]%
\axesIIID(0,3,3)(6,5,4)
\end{pspicture}
\end{LTXexample}
\endinput
|