0
$\begingroup$

I am trying to implement an exercise that should be straightforward. I have two sectors of disks (in blue and orange below) with an overlap. I am trying to calculate their Region Difference, but it doesn't work! There is no subtraction! Is this a bug related to meshing and the curved geometry?

Code:

\[Phi]f = Pi/3;
Rf = 1.0;
sectorOrigin = {0, 0};
smallSector = Disk[sectorOrigin, Rf, {-\[Phi]f/2, \[Phi]f/2}];
minRadiusSector = Disk[sectorOrigin, Rf/2, {-\[Phi]f/2, \[Phi]f/2}];

Graphics[{{Orange, smallSector}, {Blue, minRadiusSector}}]
RegionDifference[smallSector, minRadiusSector];
Region[%]

Please advise.

enter image description here

$\endgroup$
7
  • $\begingroup$ Work in 13.0.0 in Windows 10. Maybe version issue. $\endgroup$
    – cvgmt
    Jan 17 at 8:05
  • $\begingroup$ Works in v12.2 Win7-x64: result. $\endgroup$
    – Syed
    Jan 17 at 8:10
  • $\begingroup$ It works also in version 11.3 for Linux $\endgroup$
    – mattiav27
    Jan 17 at 8:46
  • $\begingroup$ You mean, all of you are seeing a sector of an annulus? Could you please share your output? I have Mathematica 12.0. I don't see it. $\endgroup$
    – ap21
    Jan 17 at 12:20
  • $\begingroup$ I did some tests and I believe the region is being calculated properly, but Region[] is not displaying it correctly. Any guesses as to why? $\endgroup$
    – ap21
    Jan 17 at 14:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.