0
RegionPlot3D[(x - 45/2)^2 + y^2 + z^2 >= 25/
   4 && (x - 15)^2 + y^2 + z^2 >= 25 && (x - 35/2)^2 + y^2 + z^2 <= 
   225/4, {x, -5, 35}, {y, -15, 15}, {z, -15, 15}, PlotPoints -> 50, 
 PlotRange -> All]

The image output by this code is of very poor quality. How can I improve it.

m_goldberg
  • 107,779
  • 16
  • 103
  • 257

1 Answers1

1

Draw extra boundary. Is slightly faster.

cond = (x - 45/2)^2 + y^2 + z^2 >= 25/4 && (x - 15)^2 + y^2 + z^2 >= 
       25 && (x - 35/2)^2 + y^2 + z^2 <= 225/4;

cond2 = List @@ (Equal @@ # & /@ cond)

rp = RegionPlot3D[cond, {x, 10, 25}, {y, 0, 8}, {z, -8, 8}, 
        PlotPoints -> 100];

cp = ContourPlot3D[
       Evaluate[cond2], {x, 10, 25}, {y, 0, 8}, {z, -8, 8}, 
       PlotPoints -> 50];

Show[cp, rp]

enter image description here

Akku14
  • 17,287
  • 14
  • 32