Bug introduced in 12.3, and persisting through 13.2.1 or later.
Is this a bug? The region and polygon don't match. How can I fix this?
I would prefer to continue using "Implicit", as it is related to one of my previous threads here.
polygon = Polygon@{{0, 1}, {1, 1}, {5, 5}, {5, 0}, {0, 0}};
region = RegionConvert[polygon, "Implicit"];
{Graphics@polygon, Region@region}
"13.0.1 for Microsoft Windows (64-bit) (January 28, 2022)"
EDIT:
I don't think it's related to plot quality, as this result of the code indicates that the intersection between the polygon and the line is a line, but that is incorrect.
If the region were represented correctly, the result of this RegionIntersection[region, ImplicitRegion[y == 3 - 2 x && x <= 1, {x, y}]]
should be a point or RegionDimension
of 0
.
Hope that I'm wrong and it's not a bug so we can solve this problem.
polygon = Polygon@{{0, 1}, {1, 1}, {5, 5}, {5, 0}, {0, 0}};
region = RegionConvert[polygon, "Implicit"];
RegionDimension@ RegionIntersection[region, ImplicitRegion[y == 3 - 2 x && x <= 1, {x, y}]]
RegionDimension
issue appeared in v12.3. In v12.2 this worked correctly if one substitutedRegionConvert
with equivalent function or copied the result from a newer version. $\endgroup$