walberla::geometry::LessThan Class Reference

Detailed Description

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
 

Constructor & Destructor Documentation

◆ LessThan()

walberla::geometry::LessThan::LessThan ( const vector< Vector3< real_t > > &  v,
real_t  tol 
)
inline

Member Function Documentation

◆ operator()()

bool walberla::geometry::LessThan::operator() ( const size_t  i1,
const size_t  i2 
) const
inline

Member Data Documentation

◆ tolerance

real_t walberla::geometry::LessThan::tolerance
private

◆ vec

const vector< Vector3<real_t> >& walberla::geometry::LessThan::vec
private

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