How can I remove the cap of a sphere in graphics ?
Graphics3D[{Red, Sphere[{0, 0, 0}, 5]}, Axes -> True, PlotRange -> {{-10, 10}, {-10, 10}, {-10, 10}}]
I'd like to remove the green part for example here :
EDIT : After having an answer, I still have a problem when I want to chose the side it must cut. For instance
Graphics3D[{Sphere[]},
ClipPlanes -> InfinitePlane[{{0, 1, 0.8}, {2, 0, 0.8}, {0, 0, 0.8}}]]
cuts the top. But what if I want to cut the bottom. So I know I could cut at $-0.8$ and return. But if I want to cut the two caps at the top and the bottom how could I proceed ?
ClipPlanes
. $\endgroup$ClipPlanes
as suggested by @JasonB.? The "Neat Examples" section demonstrates how to cut multiple planes – you just have to specify a list of planes to cut. $\endgroup$Graphics3D[{Sphere[]}, ClipPlanes -> InfinitePlane[{{2, 0, 0.8}, {0, 1, 0.8}, {0, 0, 0.8}}]]
$\endgroup$