mesh_conv::MC_v3d_less Class Reference

Comparator class for set and map. More...

#include <MC_v3d.hpp>

List of all members.

Public Member Functions

bool operator() (const MC_v3d &v0, const MC_v3d &v1) const

Detailed Description

Comparator class for set and map.

Definition at line 306 of file MC_v3d.hpp.


Member Function Documentation

bool mesh_conv::MC_v3d_less::operator() ( const MC_v3d v0,
const MC_v3d v1 
) const [inline]

Definition at line 309 of file MC_v3d.hpp.

00310   {
00311 
00312     double epsilon=1e-5;
00313     if( std::fabs(v0[0]-v1[0])<epsilon && std::fabs(v0[1]-v1[1])<epsilon && std::fabs(v0[2]-v1[2])<epsilon )
00314       return false;
00315 
00316 
00317     if(v0[0]+epsilon<v1[0])
00318       return true;
00319     else if ( !(v1[0]+epsilon<v0[0]) && v0[1]+epsilon<v1[1] )
00320       return true;
00321     else if ( !(v1[0]+epsilon<v0[0]) && !(v1[1]+epsilon<v0[1]) && v0[2]+epsilon<v1[2] )
00322       return true;
00323 
00324 
00325     return false;
00326   }


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

Generated on Sun Apr 18 20:24:48 2010 by  doxygen 1.6.1