Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have generated the following plot:

enter image description here

Code:

RegionPlot3D[  x^2 + z^2 < 1 &&   x^2 + y^2 < 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> False]

However, the resolution is a bit poor in the plot above. How can I increase the polygon count or increase the resolution some other way?

share|improve this question
    
Try changing Mesh and PlotPoints See help reference.wolfram.com/mathematica/ref/RegionPlot3D.html for options –  Nasser Nov 4 '13 at 6:25
    
Plot points did the trick! Thanks –  casandra Nov 4 '13 at 6:52

2 Answers 2

Grid[{RegionPlot3D[
     x^2 + z^2 < 1 && x^2 + y^2 < 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> False, 
     Mesh -> False, PlotPoints -> #, ViewPoint -> {2, 0, 2}, Boxed -> False] & /@ 
                                                                         {Automatic, 10, 20, 100}}]

Mathematica graphics

share|improve this answer

Just change PlotPoints. Here values between 10 and 100:

enter image description here

Creation code:

gr = Table[
   Rasterize@
    RegionPlot3D[
     x^2 + z^2 < 1 && x^2 + y^2 < 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 
      2}, Axes -> False, PlotPoints -> i, Mesh -> All], {i, 10, 100, 
    5}];

Export["tmp/resolution.gif", Join[gr, Reverse[gr]], 
 "DisplayDurations" -> .3]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.