9
$\begingroup$

Bug introduced in 10.4.0 and fixed in 11.0


This code produces a MeshRegion in versions 10.0 through 10.3.1,

MeshRegion[{{0.68, 0.88}, {0.84, 0.85}, {1.12, 0.89}, {0.33, 
   1.13}, {0.81, 0.33}, {0.43, 0.33}, {0.15, 1.13}, {0.96, 
   0.33}, {1.12, 0.33}, {1.12, 1.13}, {-0.12, 0.33}, {-0.12, 
   1.13}}, {Polygon[{1, 5, 8, 2, 1}], Polygon[{3, 9, 8, 2, 3}], 
  Polygon[{6, 11, 12, 7, 6}], Polygon[{1, 2, 3, 10, 4, 1}], 
  Polygon[{1, 5, 6, 7, 4, 1}]}]

sample mesh region

But in version 10.4, it returns the input unevaluated. Is this a bug? Am I not using the proper syntax?

$\endgroup$
  • $\begingroup$ If you remove the dupe points, it works: MeshRegion[{{0.68, 0.88}, {0.84, 0.85}, {1.12, 0.89}, {0.33, 1.13}, {0.81, 0.33}, {0.43, 0.33}, {0.15, 1.13}, {0.96, 0.33}, {1.12, 0.33}, {1.12, 1.13}, {-0.12, 0.33}, {-0.12, 1.13}}, {Polygon[{1, 5, 8, 2}], Polygon[{3, 9, 8, 2}], Polygon[{6, 11, 12, 7}], Polygon[{1, 2, 3, 10, 4}], Polygon[{1, 5, 6, 7, 4}]}] $\endgroup$ – J. M. is away Apr 8 '16 at 16:22
  • 3
    $\begingroup$ @J.M. Yes, this is correct, but there should be a message. I have filed a bug report. $\endgroup$ – ilian Apr 8 '16 at 16:32
  • $\begingroup$ @J.M. I mistakenly thought that Polygon needed a closed loop, but it apparently will close it itself. My mistake, should I delete this? $\endgroup$ – Jason B. Apr 8 '16 at 17:48
  • $\begingroup$ Had ilian not commented, I would've agreed with removing this. So, no. $\endgroup$ – J. M. is away Apr 8 '16 at 20:17
3
$\begingroup$

This has been improved as of version 11.0.0. Now the polygons in the input are reprocessed which results in elimination of the repeated vertices.

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.