You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The p.Contains(pt) logic for polygons with holes may return bad results.
Context: I have not been able to find documentation for creating a polygon with holes. I assume that you simply continue to add call p.Add(pt) for the points of the holes inside the polygon.
If my assumption is correct, then false line segments are created between the boundary and contained holes (or between successive holes). If a raycast intersects with an odd number of these false segments, the wrong result is returned.
If my assumption is incorrect, better documentation on how to create polygons with holes would be appreciated.
The text was updated successfully, but these errors were encountered:
The
p.Contains(pt)
logic for polygons with holes may return bad results.Context: I have not been able to find documentation for creating a polygon with holes. I assume that you simply continue to add call
p.Add(pt)
for the points of the holes inside the polygon.If my assumption is correct, then false line segments are created between the boundary and contained holes (or between successive holes). If a raycast intersects with an odd number of these false segments, the wrong result is returned.
If my assumption is incorrect, better documentation on how to create polygons with holes would be appreciated.
The text was updated successfully, but these errors were encountered: