1
$\begingroup$

I want to find the RegionIntersection of two DelaunayMesh (given below), but the evaluation never ends. Though when I plot them, their regions are valid and shown to intersect. Why is this?

reg1 = DelaunayMesh[{{0.54, 0.26, 0.11}, {0.54, 0.26, 0.1}, {0.54, 0.185, 0.185}, {0.54, 0.15333333333333332, 0.15333333333333332}, {0.4, 0.4, 0.11}, {0.4, 0.4, 0.1}, {0.30333333333333334, 0.30333333333333334, 0.30333333333333334}, {0.25, 0.25, 0.25}}]

reg2 = DelaunayMesh[{{0.5, 0.3, 0.15}, {0.5, 0.3, 0.1}, {0.5, 0.225, 0.225}, {0.5, 0.16666666666666666, 0.16666666666666666}, {0.4, 0.4, 0.15}, {0.4, 0.4, 0.1}, {0.31666666666666665, 0.31666666666666665, 0.31666666666666665}, {0.25, 0.25, 0.25}}]

RegionIntersection[reg1, reg2]

enter image description here

$\endgroup$
4
  • 1
    $\begingroup$ Why not just find the intersection of the convex hulls of the two point sets? $\endgroup$ Commented Mar 5, 2018 at 15:08
  • $\begingroup$ @J.M. Because I want to find RandomPoints in the intersection which is not permitted by ConvexHullMesh, and I'm curious as to why intersection of DelaunayMeshs works for other pairs but not this one. $\endgroup$
    – 2ub
    Commented Mar 5, 2018 at 15:56
  • 1
    $\begingroup$ The example doesn't work for me in 11.2, but it works for me in (the soon to be released) 11.3. $\endgroup$
    – Greg Hurst
    Commented Mar 5, 2018 at 19:29
  • $\begingroup$ @ChipHurst So it's a bug then? When will 11.3 be released? $\endgroup$
    – 2ub
    Commented Mar 6, 2018 at 4:47

0

Your Answer

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

Browse other questions tagged or ask your own question.