Skip to content
New issue

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

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

Already on GitHub? # to your account

Small clipping bug #154

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GeometryOps"
uuid = "3251bfac-6a57-4b6d-aa61-ac1fef2975ab"
authors = ["Anshul Singhvi <anshulsinghvi@gmail.com> and contributors"]
version = "0.1.7"
version = "0.1.8"

[deps]
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298"
Expand Down
1 change: 1 addition & 0 deletions src/methods/clipping/difference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function _difference(
local polys
for (i, poly_b) in enumerate(GI.getpolygon(multipoly_b))
polys = difference(i == 1 ? multipoly_a : GI.MultiPolygon(polys), poly_b; target, fix_multipoly)
asinghvi17 marked this conversation as resolved.
Show resolved Hide resolved
isempty(polys) && break
asinghvi17 marked this conversation as resolved.
Show resolved Hide resolved
end
return polys
end
Expand Down
Loading