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 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.

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

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

share|improve this answer
    
Bah! Beat me to it! –  rcollyer Sep 13 '12 at 4:39
    
@rcollyer hehe :) –  Vitaliy Kaurov Sep 13 '12 at 4:43
    
But, at least I was showing the evolution of the plot with increasing PlotPoints! :) –  rcollyer Sep 13 '12 at 4:44
add comment

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.