Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pal] Refine logic for costing polygon candidates
Instead of just considering the "candidate furthest from the polygon rings" as the best, also consider that candidates closer to the overall polygon centroid are better than those further from the centroid. I.e. if two candidates are similarish distances from a ring, pick the one closer to the centroid instead of the one further from the centroid (even if that further one is a tiny bit more distant from a ring)
- Loading branch information
1 parent
77b3d99
commit c924ce5
Showing
2 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters