3
$\begingroup$

Consider the simple following example:

MeshRegion[{{0, 0, 0}, {0, 0, 1}, {0, -1, 0}, {1, 0, 0}, {0, 1, 0}},
  {Triangle[{1, 2, 3}], Triangle[{1, 2, 4}], Triangle[{1, 2, 5}]}, 
  PlotRange -> {{-2, 2}, {-2, 2}, {-5, 5}}]

It returns this wrong image:

enter image description here

and when I click on the image I get the correct image (with the correct PlotRange):

enter image description here

What's happening?

$\endgroup$
  • 3
    $\begingroup$ I think the output is shrink wrapped. Show[mesh, Method -> {"ShrinkWrap" -> False}] seems to fix things. $\endgroup$ – Chip Hurst Feb 1 '18 at 19:55
  • $\begingroup$ @ChipHurst Perfect. Maybe you could write an answer, as that solves my issue. $\endgroup$ – anderstood Feb 1 '18 at 20:59
5
$\begingroup$

I think the output is shrink wrapped. This fixes things:

mesh = MeshRegion[{{0, 0, 0}, {0, 0, 1}, {0, -1, 0}, {1, 0, 0}, {0, 1, 0}}, 
  {Triangle[{1, 2, 3}], Triangle[{1, 2, 4}], Triangle[{1, 2, 5}]}, 
  PlotRange -> {{-2, 2}, {-2, 2}, {-5, 5}}
];

Show[mesh, Method -> {"ShrinkWrap" -> False}]

enter image description here

$\endgroup$

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.