We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fffb74 commit 9ae51edCopy full SHA for 9ae51ed
include/hpp/fcl/narrowphase/gjk.h
@@ -254,6 +254,9 @@ struct HPP_FCL_DLLAPI GJK {
254
/// @brief Get GJK number of iterations.
255
inline size_t getIterations() { return iterations; }
256
257
+ /// @brief Get GJK tolerance.
258
+ inline FCL_REAL getTolerance() { return tolerance; }
259
+
260
private:
261
SimplexV store_v[4];
262
SimplexV* free_v[4];
src/narrowphase/gjk.cpp
@@ -1621,6 +1621,7 @@ EPA::Status EPA::evaluate(GJK& gjk, const Vec3f& guess) {
1621
// the origin.
1622
status = FallBack;
1623
// TODO: define a better normal
1624
+ assert(simplex.rank == 1 && simplex.vertex[0]->w.isZero(gjk.getTolerance()));
1625
normal = -guess;
1626
FCL_REAL nl = normal.norm();
1627
if (nl > 0)
0 commit comments