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$

1 Answer 1

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$
4
  • $\begingroup$ Bah! Beat me to it! $\endgroup$
    – rcollyer
    Commented Sep 13, 2012 at 4:39
  • $\begingroup$ @rcollyer hehe :) $\endgroup$ Commented Sep 13, 2012 at 4:43
  • $\begingroup$ But, at least I was showing the evolution of the plot with increasing PlotPoints! :) $\endgroup$
    – rcollyer
    Commented Sep 13, 2012 at 4:44
  • $\begingroup$ Why doesn't increasing MaxRecursion help? $\endgroup$
    – masterxilo
    Commented Sep 18, 2016 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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