polygonToCells: remove ring tracing step#599
polygonToCells: remove ring tracing step#599kalenikaliaksandr wants to merge 1 commit intouber:masterfrom
Conversation
8cfbb5c to
d4c92e5
Compare
|
Thank you for your submission. In the future, it might make sense to discuss in our Slack channel or in a GitHub issue before putting together a PR. The reason we include the step of tracing the outlines is that the cells returned by It looks like we don't have good test cases for these issues, however - I would have hoped the tests would fail in this PR, but they don't, which suggests a gap in our unit tests. |
polygonToCells algorithm basically seems to have following steps:
First step with ring hexagons tracing seems unnecessary for me because in breadth-first search any point from polygon can be used as start point and all others will be found eventually.