coal 3.0.4 Coal, The Collision Detection Library. Previously known as HPP-FCL, fork of FCL -- The Flexible Collision Library |
class for EPA algorithm More...
#include <coal/narrowphase/gjk.h>

Classes | |
| struct | SimplexFace |
| struct | SimplexFaceList |
| The simplex list of EPA is a linked list of faces. Note: EPA's linked list does not own any memory. The memory it refers to is contiguous and owned by a std::vector. More... | |
| struct | SimplexHorizon |
Public Types | |
| enum | Status { DidNotRun = -1 , Failed = 0 , Valid = 1 , AccuracyReached = 1 << 1 | Valid , Degenerated = 1 << 1 | Failed , NonConvex = 2 << 1 | Failed , InvalidHull = 3 << 1 | Failed , OutOfFaces = 4 << 1 | Failed , OutOfVertices = 5 << 1 | Failed , FallBack = 6 << 1 | Failed } |
| typedef GJK::SimplexV | SimplexVertex |
Public Member Functions | |
| EPA (size_t max_iterations_, CoalScalar tolerance_) | |
| EPA (const EPA &other) | |
| Copy constructor of EPA. Mostly needed for the copy constructor of GJKSolver. | |
| size_t | getNumMaxIterations () const |
| Get the max number of iterations of EPA. | |
| size_t | getNumMaxVertices () const |
| Get the max number of vertices of EPA. | |
| size_t | getNumMaxFaces () const |
| Get the max number of faces of EPA. | |
| CoalScalar | getTolerance () const |
| Get the tolerance of EPA. | |
| size_t | getNumIterations () const |
| Get the number of iterations of the last run of EPA. | |
| size_t | getNumVertices () const |
| Get the number of vertices in the polytope of the last run of EPA. | |
| size_t | getNumFaces () const |
| Get the number of faces in the polytope of the last run of EPA. | |
| void | reset (size_t max_iterations, CoalScalar tolerance) |
| resets the EPA algorithm, preparing it for a new run. It potentially reallocates memory for the vertices and faces if the passed parameters are bigger than the previous ones. This function does not modify the parameters of the EPA algorithm, i.e. the maximum number of iterations and the tolerance. | |
| Status | evaluate (GJK &gjk, const Vec3s &guess) |
| void | getWitnessPointsAndNormal (const MinkowskiDiff &shape, Vec3s &w0, Vec3s &w1, Vec3s &normal) const |
Static Public Member Functions | |
| static void | bind (SimplexFace *fa, size_t ea, SimplexFace *fb, size_t eb) |
| We bind the face fa along its edge ea to the face fb along its edge fb. | |
Public Attributes | |
| Status | status |
| GJK::Simplex | result |
| Vec3s | normal |
| support_func_guess_t | support_hint |
| CoalScalar | depth |
| SimplexFace * | closest_face |
class for EPA algorithm
| inline |
| inline |
| inlinestatic |
We bind the face fa along its edge ea to the face fb along its edge fb.
| inline |
Get the number of faces in the polytope of the last run of EPA.
| inline |
Get the number of iterations of the last run of EPA.
| inline |
Get the max number of faces of EPA.
| inline |
Get the max number of iterations of EPA.
| inline |
Get the max number of vertices of EPA.
| inline |
Get the number of vertices in the polytope of the last run of EPA.
| inline |
Get the tolerance of EPA.
| void coal::details::EPA::getWitnessPointsAndNormal | ( | const MinkowskiDiff & | shape, |
| Vec3s & | w0, | ||
| Vec3s & | w1, | ||
| Vec3s & | normal ) const |
Get the witness points on each object, and the corresponding normal.
| [in] | shape | is the Minkowski difference of the two shapes. |
| [out] | w0 | is the witness point on shape0. |
| [out] | w1 | is the witness point on shape1. |
| [in] | normal | is the normal found by EPA. It points from shape0 to shape1. The normal is used to correct the witness points on the shapes if the shapes have a non-zero swept-sphere radius. |
| void coal::details::EPA::reset | ( | size_t | max_iterations, |
| CoalScalar | tolerance ) |
| SimplexFace* coal::details::EPA::closest_face |
| CoalScalar coal::details::EPA::depth |
| Vec3s coal::details::EPA::normal |
| GJK::Simplex coal::details::EPA::result |
| Status coal::details::EPA::status |
| support_func_guess_t coal::details::EPA::support_hint |