4
$\begingroup$

I tried to plot the region bounded by the three planes. This is supposed to give me a pyramid type of shape (actually two, but I am just taking one of them). The code is given by

RegionPlot3D[
 x - Sqrt[2]*z >= 0 && Sqrt[2]*x + Sqrt[3]*y + z >= 0 && 
  Sqrt[2]*x - Sqrt[3]*y + z >= 0, {x, 0, 12}, {y, -20, 20}, {z, -20, 
  20}, AxesLabel -> Automatic, Mesh -> None, 
 PlotStyle -> Directive[Yellow, Opacity[0.5]]]

I am getting kinkiness in the lines created by joining of two planes, plot of pyramid

Is it a problem in my graphics card? However, I have checked in different machines and in versions 6, 7 and 8. I got the same situation in all of them. May be it is the similar kind of problem as posted here. I am not sure exactly what modification has to be made. Advanced thanks for any help.

$\endgroup$
7
$\begingroup$

Increase the number of Plotpoints:

RegionPlot3D[x - Sqrt[2]*z >= 0 && Sqrt[2]*x + Sqrt[3]*y + z >= 0 && 
  Sqrt[2]*x - Sqrt[3]*y + z >= 0, {x, 0, 12}, {y, -20, 20}, {z, -20, 
  20}, AxesLabel -> Automatic, Mesh -> None, 
 PlotStyle -> Directive[Yellow, Opacity[0.5]], PlotPoints -> 150]

enter image description here

$\endgroup$
  • $\begingroup$ Bah! Beat me to it! $\endgroup$ – rcollyer Sep 13 '12 at 4:39
  • $\begingroup$ @rcollyer hehe :) $\endgroup$ – Vitaliy Kaurov Sep 13 '12 at 4:43
  • $\begingroup$ But, at least I was showing the evolution of the plot with increasing PlotPoints! :) $\endgroup$ – rcollyer Sep 13 '12 at 4:44
  • $\begingroup$ Why doesn't increasing MaxRecursion help? $\endgroup$ – masterxilo Sep 18 '16 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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