Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-clean each ring of polygons to fix the bow tie problem #769

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

e-n-f
Copy link
Contributor

@e-n-f e-n-f commented Jun 27, 2019

No description provided.

@e-n-f e-n-f requested a review from flippmoke June 27, 2019 20:38
@@ -269,7 +269,7 @@ drawvec clean_or_clip_poly(drawvec &geom, int z, int buffer, bool clip) {

mapbox::geometry::multi_polygon<long long> result;
try {
wagyu.execute(mapbox::geometry::wagyu::clip_type_union, result, mapbox::geometry::wagyu::fill_type_positive, mapbox::geometry::wagyu::fill_type_positive);
wagyu.execute(mapbox::geometry::wagyu::clip_type_union, result, even_odd ? mapbox::geometry::wagyu::fill_type_even_odd : mapbox::geometry::wagyu::fill_type_positive, even_odd ? mapbox::geometry::wagyu::fill_type_even_odd : mapbox::geometry::wagyu::fill_type_positive);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second fill option is only needed to change if you are using "clip" polygon types with add_ring, I believe you are only using subject polygon types so you can probably just always leave the 2nd option as positive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants