1 \section{Fusing solids
}
3 It is possible to arrange several solids within the same
4 structure: this is done with the operation
\Lkeyword{fusion
} of
5 solids. This technique uses the painting algorithm for the whole
8 To do so, you must activate the option
\verb+
\psset{solidmemory
}+
9 to memorize the structures of the different solids within
10 \Lcs{psSolid
}, with each of them given a separate name.
12 You use the object
\Lkeyword{fusion
} of
\Lcs{psSolid
}, by indicating in
13 the parameter
\Lkeyword{base
} the list of names of the solids to be
16 To draw the scene, don't forget to conclude the code with
19 \psset{lightsrc=
50 -
50 50,viewpoint=
40 16 32 rtp2xyz,Decran=
40}
20 \begin{LTXexample
}[width=
7.5cm
]
22 \begin{pspicture
}(-
6,-
5)(
6,
7)
24 \psSolid[object=cylindre,h=
6,fillcolor=blue,
30 \psSolid[object=anneau,h=
6,fillcolor=red!
50,
35 \psSolid[object=fusion,
44 \begin{LTXexample
}[width=
6.5cm
]
46 \begin{pspicture
}(-
6,-
5)(
6,
5)
48 \psset{lightsrc=
50 -
50 50,viewpoint=
100 -
30 40,
49 Decran=
100,linewidth=
0.5\pslinewidth,
50 ngrid=
18 18,fillcolor=white,
52 \psframe*
[linecolor=black
](-
6,-
5)(
6,
5)
53 \psSolid[object=cylindrecreux,
55 name=cylindre1
](
0,
6,
0)
56 \psSolid[object=cylindrecreux,
59 name=cylindre2
](-
6,
0,
0)
60 \psSolid[object=fusion,
61 base=cylindre1 cylindre2,RotX=
0]