Skip to content

Commit

Permalink
Fix the wagyu flags. We need intersection, not union
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Nov 22, 2024
1 parent 9c4c952 commit 3ffc04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ drawvec clip_poly(drawvec &geom, drawvec const &bounds) {

try {
result.clear();
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_intersection, result, mapbox::geometry::wagyu::fill_type_positive, mapbox::geometry::wagyu::fill_type_positive);
} catch (std::runtime_error &e) {
fprintf(stderr, "Internal error: Polygon clipping failed\n");
exit(EXIT_IMPOSSIBLE);
Expand Down

0 comments on commit 3ffc04a

Please sign in to comment.