Fix the wagyu flags. We need intersection, not union

This commit is contained in:
Erica Fischer
2024-11-22 10:34:13 -08:00
parent 9c4c95295f
commit 3ffc04a0b2
+1 -1
View File
@@ -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);