#include <gjk_voronoi_simplex_solver_policy.h>
Static Public Member Functions | |
template<typename V > | |
static V | reduce_simplex (Simplex< V > &S, V &a, V &b) |
Voronoi Simplex Policy. This class implements a policy for how GJK-type of algorithms make changes to the underlying simplex approximation.
This particular policy updates and make changes to the simplex based on voronoi region case-by-case analysis.
static V OpenTissue::gjk::VoronoiSimplexSolverPolicy::reduce_simplex | ( | Simplex< V > & | S, | |
V & | a, | |||
V & | b | |||
) | [inline, static] |
Reduce Simplex. Compute the point, v, on the simplex that is closest to the origin and Reduce simplex to lowest dimensional face on the boundary containing the closest point.
S | Upon invocation this argument holds the initial simplex and upon return the argument holds the resulting reduced simplex. | |
a | Upon return this argument holds the corresponding closest point on the set A. | |
b | Upon return this argument holds the corresponding closest point on the set B. |