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
Hello @bernizt ,
Sorry for the late reply.
I tried your example in the latest release (1.2.1) and got expected result in both cases.
See this notebook: https://observablehq.com/d/d407b9bed460e39b
Thanks,
Alex
I think there is still a bug. I updated the example, just changed the shape of polygon a little: https://observablehq.com/@karolis-k/issue-31-bug-in-polygon-contain-method
I quickly checked the code and it seems that the problem is that segment's/edge's inclusion is checked only by start, end and middle points. In previous example it just happened so by coincidence that middle point was outside polygon.
The text was updated successfully, but these errors were encountered: