Helper class, used in TriangleMesh::removeDuplicateVertices.
The class can be used as a comparator object. It compares to integers, by interpreting them as indices in an array of vertices (which is given at construction). Then the positions of these vertices is compared. This is used to sort an array of indices, rather than the vertex array itself.
Public Member Functions | |
LessThan (const vector< Vector3< real_t > > &v, real_t tol) | |
bool | operator() (const size_t i1, const size_t i2) const |
Private Attributes | |
const vector< Vector3< real_t > > & | vec |
real_t | tolerance |
|
private |