4
$\begingroup$

It looks like DiscretizeRegion struggles with some circular arcs, in a way that seems to depend on the data types of the chosen angles. An angle specification of {0, 2} (integers) gives the correct result (left), but {0, 2.} does not (right). Can anyone confirm and/or explain? I'm running 10.3.0.0 on 64-bit Windows.

GraphicsRow[DiscretizeRegion[Circle[{0, 0}, 1, #]] & /@ {{0, 2}, {0, 2.}}]

Two discretizations of the same circular arc

$\endgroup$
2
  • $\begingroup$ Cannot reproduce on 10.4 However, it is wise not to use floating points in general. $\endgroup$
    – Feyre
    Sep 5 '16 at 21:01
  • 1
    $\begingroup$ Cannot reproduce on 10.3.1 but can reproduce on 10.2.0. (Win 7 64-bit) $\endgroup$ Sep 5 '16 at 21:16
5
$\begingroup$

This appears to be fixed in v11, at least.

GraphicsRow[DiscretizeRegion[Circle[{0, 0}, 1, #]] & /@ {{0, 2}, {0, 2.}}]

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.