Bug introduced in 11.2. Fixed in 12.2.0 or earlier.
Ω =
RegionDifference[Rectangle[{0, 0}, {100, 100}],
Rectangle[{40, 40}, {60, 60}]];
RegionPlot[Ω]
DensityPlot[x^2 + y^2, {x, y} ∈ Ω]
when I run it in v11.2 I got
while I run it in v11 I got
so is it a bug?
RegionPlot[\[CapitalOmega], PlotRange -> {{0, 100}, {0, 100}}]
andDensityPlot[x^2 + y^2, {x, 0, 100}, {y, 0, 100}, RegionFunction -> Function[{x, y, f}, {x, y} \[Element] \[CapitalOmega]]]
$\endgroup$