Skip to content

Commit

Permalink
workaround for JuliaGeometry#810
Browse files Browse the repository at this point in the history
return (possibly) false positive anyways
  • Loading branch information
cserteGT3 committed Apr 1, 2024
1 parent c7840bd commit 9d7d24c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/predicates/intersects.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ function intersects(g₁::Geometry{Dim,T}, g₂::Geometry{Dim,T}) where {Dim,T}

# move towards the origin
d = O - P
i = 0
while true
i += 1
if i > 9
# if stuck in infinite loop, then return true
println("sus")
return true
end
P = minkowskipoint(g₁, g₂, d)
if (P - O) d < zero(T)
return false
Expand Down

0 comments on commit 9d7d24c

Please # to comment.