-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix HPolygon vs HPolygon intersection in floating point #672
Comments
😟 |
This could be a problem with redundant constraints, see #381. |
Just checked this again, and it has been fixed by now 🎉 ph = convert(HPolygon, p)
qh = convert(HPolygon, q)
plot!(intersection(ph, qh)) Regarding computation time,
|
On the other hand intersection of original @btime intersection($p, $q) # as VPolygon
2.594 ms (32355 allocations: 1.84 MiB) (this passes through Polyhedra through this function, i'm thinking if we should rather use a 2D implementation, or at least convert to HPolygon and then use the intersection of HPolygon should be cheaper. |
Let
Compute the intersection with
CDD
:Compute the intersection using
intersection(::HPolygon, ::HPolygon)
:The text was updated successfully, but these errors were encountered: