I try to replicate the two figures of two intersecting cylinders from here.
I tried
cylinders1 =
Graphics3D@{Specularity[White, 20], Red, EdgeForm[],
Cylinder[{{-2, 0, 0}, {2, 0, 0}}]};
cylinders2 =
Graphics3D@{Specularity[White, 40], Blue, EdgeForm[],
Cylinder[{{0, 0, -2}, {0, 0, 2}}]};
Show[{cylinders1, cylinders2}, Boxed -> False]
What should I do in order to get an closer to
(not bother with orientation)?
For the common region RegionPlot3D
RegionPlot3D[
x^2 + y^2 <= 1 && y^2 + z^2 <= 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1},
Mesh -> False, Axes -> True, Boxed -> False,
PlotStyle -> Directive[Orange, Specularity[White, 20]],
PlotPoints -> 100]
comes handy here but I don't know how to achieve the different coloring shown below.
Thanks.