-
Notifications
You must be signed in to change notification settings - Fork 417
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
EPA error when the triangle is degenerate #395
Comments
The problem is that while expanding the polytope in EPA algorithm, we had three vertices of the polytope, that are colinear, hence the triangle is degenerate. The next time when when want to connect the new vertex to the edges of this degenerate triangle, we cannot meaningfully determine an outward normal of the triangle. The co-linearity occurs due to the support function. Imagine that we have a polytope (as the Minkowski difference A ⊖ B). For most cases the vertices are the unique maximizer of I think one solution is to detect such degeneracy in the EPA code. We could
Approach 2 is much easier than approach 1. But I think approach 1 is a cleaner solution. I think it is easier to think of non-degenerate triangles, and keep nondegeneracy as an invariant property during EPA expansion. cc @sherm1 , @SeanCurtis-TRI and @DamrongGuoy for discussion. |
From my ignorant point of view, keeping the nondegeneracy invariant enforced seems much nicer. |
Make sure that the support point of a box is always one of the box vertices, not the middle of an edge or a face. This helps to reduce the "degenerate triangle issue" reported in #395
This error was caught in the wild
The text was updated successfully, but these errors were encountered: