Static Public Member Functions

OpenTissue::gjk::VoronoiSimplexSolverPolicy Class Reference

#include <gjk_voronoi_simplex_solver_policy.h>

List of all members.

Static Public Member Functions

template<typename V >
static V reduce_simplex (Simplex< V > &S, V &a, V &b)

Detailed Description

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.


Member Function Documentation

template<typename V >
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.

Parameters:
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.
Returns:
The closest point, v, on the simplex to the origin.

The documentation for this class was generated from the following file: